Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/04/10 18:55:46 (15 years ago)
Author:
gkronber
Message:

Fixed projects to work with new plugin infrastructure. #799

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  
    2626
    2727namespace 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")]
    3232  public class HeuristicLabMainFormTestPlugin : PluginBase {
    3333  }
  • branches/PluginInfrastructure Refactoring/HeuristicLab.MainForm.WindowsForms/3.2/MainFormBase.cs

    r2548 r2587  
    269269
    270270    #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
    275273      IEnumerable<IMenuItem> toolStripMenuItems =
    276         from mi in items
     274        from mi in ApplicationManager.Manager.GetInstances(userInterfaceItemType)
    277275        where mi is IMenuItem
    278276        orderby ((IMenuItem)mi).Position
     
    281279        AddToolStripMenuItem(menuItem);
    282280
    283       items = ds.GetInstances(userInterfaceItemType);
    284281      IEnumerable<IToolBarItem> toolStripButtonItems =
    285         from bi in items
     282        from bi in ApplicationManager.Manager.GetInstances(userInterfaceItemType)
    286283        where bi is IToolBarItem
    287284        orderby ((IToolBarItem)bi).Position
Note: See TracChangeset for help on using the changeset viewer.