Changeset 2043


Ignore:
Timestamp:
Oct 30, 2010, 4:29:18 PM (11 years ago)
Author:
Sven Rech
Message:

added message in KeySearcherSettings that OpenCL Devices are not available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/KeySearcherSettings.cs

    r2040 r2043  
    243243        #region OpenCL
    244244
     245        [TaskPane("No OpenCL available", null, GroupOpenCL, 1, false, DisplayLevel.Experienced, ControlType.TextBoxReadOnly)]
     246        public string NoOpenCL
     247        {
     248            get { return "No OpenCL Device available!"; }
     249            set {}
     250        }
     251
    245252        private bool useOpenCL;
    246253        [TaskPane("Use OpenCL", "If checked, an OpenCL device is used for bruteforcing.",
     
    280287                TaskPaneAttributeChanged(this, new TaskPaneAttributeChangedEventArgs(new TaskPaneAttribteContainer("OpenCLDevice", Visibility.Collapsed)));
    281288                TaskPaneAttributeChanged(this, new TaskPaneAttributeChangedEventArgs(new TaskPaneAttribteContainer("UseOpenCL", Visibility.Collapsed)));
     289                TaskPaneAttributeChanged(this, new TaskPaneAttributeChangedEventArgs(new TaskPaneAttribteContainer("NoOpenCL", Visibility.Visible)));
    282290            }
    283291            else
     
    285293                TaskPaneAttributeChanged(this, new TaskPaneAttributeChangedEventArgs(new TaskPaneAttribteContainer("OpenCLDevice", Visibility.Visible)));
    286294                TaskPaneAttributeChanged(this, new TaskPaneAttributeChangedEventArgs(new TaskPaneAttribteContainer("UseOpenCL", Visibility.Visible)));
     295                TaskPaneAttributeChanged(this, new TaskPaneAttributeChangedEventArgs(new TaskPaneAttribteContainer("NoOpenCL", Visibility.Collapsed)));
    287296                DeviceVisibility();
    288297            }
Note: See TracChangeset for help on using the changeset viewer.