Changeset 13720 for branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3/Menu/0_Config
- Timestamp:
- 03/19/16 22:35:39 (9 years ago)
- Location:
- branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3/Menu/0_Config
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3/Menu/0_Config/10_SetCredentialsMenuItem.cs
r13718 r13720 28 28 get { return "Set Username / Password..."; } 29 29 } 30 30 31 public override IEnumerable<string> Structure { 31 32 get { return new[] { "Config" }; } 32 33 } 34 33 35 public override int Position { 34 36 get { return 10; } 35 37 } 38 36 39 public override string ToolTipText { 37 40 get { return "Set username and password for accessing HeuristicLab services"; } -
branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3/Menu/0_Config/20_SetProblemMenuItem.cs
r13718 r13720 20 20 #endregion 21 21 22 using HeuristicLab.Common.Resources; 22 23 using System.Collections.Generic; 24 using System.Drawing; 23 25 24 26 namespace HeuristicLab.OptimizationExpertSystem.Menu { 25 27 internal class SetProblemMenuItem : MenuItemBase { 26 public override void Execute() { 27 MainForm.ShowContent(MainForm.ExpertSystem.Problem, true); 28 public override Image Image { get { return VSImageLibrary.Edit; } } 29 30 public override string Name { 31 get { return "Problem Instance"; } 28 32 } 29 33 … … 32 36 } 33 37 34 public override string Name{35 get { return "Problem Instance"; }38 public override int Position { 39 get { return 20; } 36 40 } 37 41 … … 40 44 } 41 45 42 public override int Position{43 get { return 20; }46 public override void Execute() { 47 MainForm.ShowContent(MainForm.ExpertSystem.Problem, true); 44 48 } 45 49 } -
branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3/Menu/0_Config/30_DownloadFromOkbMenuItem.cs
r13718 r13720 20 20 #endregion 21 21 22 using HeuristicLab.Common.Resources; 23 using System; 22 24 using System.Collections.Generic; 25 using System.Drawing; 23 26 24 27 namespace HeuristicLab.OptimizationExpertSystem.Menu { 25 28 internal class DownloadFromOKBMenuItem : MenuItemBase { 26 public override void Execute() { 27 MainForm.ExpertSystem.UpdateKnowledgeBaseAsync(); 29 public override Image Image { get { return VSImageLibrary.ArrowDown; } } 30 31 public override string Name { 32 get { return "Download"; } 28 33 } 29 34 30 35 public override IEnumerable<string> Structure { 31 get { return new[] { "Config" }; } 32 } 33 34 public override string Name { 35 get { return "Download from OKB"; } 36 get { return new[] { "Config", "OKB" }; } 36 37 } 37 38 … … 39 40 get { return 30; } 40 41 } 42 43 public override string ToolTipText { get { return "Download relevant runs from the knowledge base."; } } 44 45 public override void Execute() { 46 MainForm.ExpertSystem.UpdateKnowledgeBaseAsync(); 47 } 48 49 protected override void OnToolStripItemSet(EventArgs e) { 50 base.OnToolStripItemSet(e); 51 ToolStripItem.Enabled = MainForm.ExpertSystem.Problem.ProblemId != -1; 52 MainForm.ExpertSystem.Problem.ProblemChanged += OnProblemChanged; 53 } 54 55 private void OnProblemChanged(object sender, EventArgs e) { 56 ToolStripItem.Enabled = MainForm.ExpertSystem.Problem.ProblemId != -1; 57 } 41 58 } 42 59 } -
branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3/Menu/0_Config/40_AdministerOkbMenuItem.cs
r13718 r13720 22 22 using HeuristicLab.Clients.OKB; 23 23 using HeuristicLab.Clients.OKB.Administration; 24 using HeuristicLab.Common.Resources; 24 25 using HeuristicLab.MainForm; 25 26 using System.Collections.Generic; 27 using System.Drawing; 26 28 using System.Windows.Forms; 27 29 28 30 namespace HeuristicLab.OptimizationExpertSystem.Menu { 29 31 internal class AdministerOKBMenuItem : MenuItemBase { 32 public override Image Image { get { return VSImageLibrary.Database; } } 33 30 34 public override string Name { 31 get { return "Admin ister OKB"; }35 get { return "Admin"; } 32 36 } 37 33 38 public override IEnumerable<string> Structure { 34 get { return new[] { "Config" }; }39 get { return new[] { "Config", "OKB" }; } 35 40 } 41 36 42 public override int Position { 37 43 get { return 40; } 38 44 } 45 46 public override string ToolTipText { get { return "Administrate the OKB."; } } 39 47 40 48 public override void Execute() {
Note: See TracChangeset
for help on using the changeset viewer.