- Timestamp:
- 01/15/11 02:34:08 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/CreateExperimentMenuItem.cs
r4650 r5300 38 38 } 39 39 public override string ToolTipText { 40 get { return "Create an experiment for the shown algorithm"; }40 get { return "Create an experiment for the shown optimizer"; } 41 41 } 42 42 … … 46 46 protected override void OnActiveViewChanged(object sender, EventArgs e) { 47 47 IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView; 48 ToolStripItem.Enabled = (activeView != null) && (activeView.Content != null) && (activeView.Content is I Algorithm) && !activeView.Locked;48 ToolStripItem.Enabled = (activeView != null) && (activeView.Content != null) && (activeView.Content is IOptimizer) && !activeView.Locked; 49 49 } 50 50 51 51 public override void Execute() { 52 52 IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView; 53 if ((activeView != null) && (activeView.Content != null) && (activeView.Content is I Algorithm) && !activeView.Locked) {54 using (CreateExperimentDialog dialog = new CreateExperimentDialog((I Algorithm)activeView.Content)) {53 if ((activeView != null) && (activeView.Content != null) && (activeView.Content is IOptimizer) && !activeView.Locked) { 54 using (CreateExperimentDialog dialog = new CreateExperimentDialog((IOptimizer)activeView.Content)) { 55 55 if (dialog.ShowDialog() == DialogResult.OK) MainFormManager.MainForm.ShowContent(dialog.Experiment); 56 56 }
Note: See TracChangeset
for help on using the changeset viewer.