Changeset 13720 for branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3/Menu/300_Learning
- Timestamp:
- 03/19/16 22:35:39 (9 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3/Menu/300_Learning/310_KnowledgeBaseMenuItem.cs
r13719 r13720 20 20 #endregion 21 21 22 using System; 22 using HeuristicLab.Common.Resources; 23 using HeuristicLab.MainForm.WindowsForms; 23 24 using System.Collections.Generic; 25 using System.Drawing; 26 using System.Linq; 24 27 25 28 namespace HeuristicLab.OptimizationExpertSystem.Menu { 26 29 internal class AlgorithmInstancesMenuItem : MenuItemBase { 27 public override void Execute() { 28 throw new NotImplementedException(); 30 public override Image Image { get { return VSImageLibrary.Library; } } 31 32 public override string Name { 33 get { return "Knowledge Base"; } 29 34 } 30 35 … … 33 38 } 34 39 35 public override string Name {36 get { return "Algorithm Instances"; }37 }38 39 40 public override int Position { 40 41 get { return 310; } 41 42 } 43 44 public override string ToolTipText { get { return "Study previously conducted runs on problem instances of the same class that are stored in the OKB."; } } 45 46 public override void Execute() { 47 var viewType = typeof(KnowledgeBaseView); 48 var view = MainForm.Views.FirstOrDefault(x => viewType == ((x is ViewHost) ? ((ViewHost)x).ActiveView : x).GetType()); 49 if (view != null) view.Show(); 50 else MainForm.ShowContent(MainForm.ExpertSystem, viewType); 51 } 42 52 } 43 53 }
Note: See TracChangeset
for help on using the changeset viewer.