- Timestamp:
- 01/04/10 18:55:46 (15 years ago)
- Location:
- branches/PluginInfrastructure Refactoring/HeuristicLab.MainForm.WindowsForms/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PluginInfrastructure Refactoring/HeuristicLab.MainForm.WindowsForms/3.2/HeuristicLabMainFormWindowsFormsPlugin.cs
r2529 r2587 26 26 27 27 namespace HeuristicLab.MainForm.WindowsForms { 28 [ ClassInfo(Name ="HeuristicLab.MainForm.WindowsForms-3.2")]29 [PluginFile( Filename = "HeuristicLab.MainForm.WindowsForms-3.2.dll", Filetype =PluginFileType.Assembly)]30 [PluginFile( Filename = "WeifenLuo.WinFormsUI.Docking.dll", Filetype =PluginFileType.Assembly)]31 [ Dependency(Dependency ="HeuristicLab.MainForm-3.2")]28 [Plugin("HeuristicLab.MainForm.WindowsForms-3.2")] 29 [PluginFile("HeuristicLab.MainForm.WindowsForms-3.2.dll", PluginFileType.Assembly)] 30 [PluginFile("WeifenLuo.WinFormsUI.Docking.dll", PluginFileType.Assembly)] 31 [PluginDependency("HeuristicLab.MainForm-3.2")] 32 32 public class HeuristicLabMainFormTestPlugin : PluginBase { 33 33 } -
branches/PluginInfrastructure Refactoring/HeuristicLab.MainForm.WindowsForms/3.2/MainFormBase.cs
r2548 r2587 269 269 270 270 #region create menu and toolbar 271 protected virtual void CreateGUI() { 272 DiscoveryService ds = new DiscoveryService(); 273 274 object[] items = ds.GetInstances(userInterfaceItemType); 271 protected virtual void CreateGUI() { 272 275 273 IEnumerable<IMenuItem> toolStripMenuItems = 276 from mi in items274 from mi in ApplicationManager.Manager.GetInstances(userInterfaceItemType) 277 275 where mi is IMenuItem 278 276 orderby ((IMenuItem)mi).Position … … 281 279 AddToolStripMenuItem(menuItem); 282 280 283 items = ds.GetInstances(userInterfaceItemType);284 281 IEnumerable<IToolBarItem> toolStripButtonItems = 285 from bi in items282 from bi in ApplicationManager.Manager.GetInstances(userInterfaceItemType) 286 283 where bi is IToolBarItem 287 284 orderby ((IToolBarItem)bi).Position
Note: See TracChangeset
for help on using the changeset viewer.