- Timestamp:
- 01/05/10 10:31:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.OptimizationFrontend/3.2/MainForm.cs
r2576 r2591 26 26 using System.Drawing; 27 27 using System.Text; 28 using System.Linq; 28 29 using System.Threading; 29 30 using System.Windows.Forms; … … 58 59 runningTasks = 0; 59 60 60 DiscoveryService discoveryService = new DiscoveryService();61 62 61 // discover creatable items 63 Type[] creatables = discoveryService.GetTypes(typeof(IEditable)); 64 string[] names = new string[creatables.Length]; 65 for (int i = 0; i < creatables.Length; i++) 66 names[i] = creatables[i].Name; 67 Array.Sort(names, creatables); 62 IEnumerable<Type> creatables = from x in ApplicationManager.Manager.GetTypes(typeof(IEditable)) 63 orderby x.Name 64 select x; 68 65 foreach (Type type in creatables) { 69 66 if (!type.IsAbstract) { … … 84 81 85 82 #region IControlManager Members 86 public void ShowControl( IControlcontrol) {87 if (InvokeRequired) Invoke((Action< IControl>)ShowControl, control);83 public void ShowControl(object control) { 84 if (InvokeRequired) Invoke((Action<object>)ShowControl, control); 88 85 else { 89 86 if (control is IEditor) { … … 176 173 else { 177 174 editor.Filename = task.filename; 178 PluginManager.ControlManager.ShowControl(editor);175 ControlManager.Manager.ShowControl(editor); 179 176 } 180 177 lock (locker) { … … 239 236 MessageBox.Show("The selected item doesn't provide an editor.", "Editor Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 240 237 } else { 241 PluginManager.ControlManager.ShowControl(editor);238 ControlManager.Manager.ShowControl(editor); 242 239 EnableDisableItems(); 243 240 }
Note: See TracChangeset
for help on using the changeset viewer.