Changeset 16033
- Timestamp:
- 07/30/18 14:38:22 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Clients.OKB.Views/3.3/RunCreation/CreateFromExperimentMenuItem.cs
r16032 r16033 42 42 IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView; 43 43 44 ToolStripItem.Enabled = false; 45 if (activeView == null) { return; } 46 if (activeView.Content == null) { return; } 47 if (!((activeView.Content is Experiment) 48 || (activeView.Content is RunCollection) 49 || (activeView.Content is IOptimizer))) { return; } 50 if (activeView.Locked) { return; } 51 52 ToolStripItem.Enabled = true; 44 ToolStripItem.Enabled = (activeView != null) && (activeView.Content != null) 45 && ((activeView.Content is Experiment) || (activeView.Content is RunCollection) || (activeView.Content is IOptimizer)) 46 && !activeView.Locked; 53 47 } 54 48
Note: See TracChangeset
for help on using the changeset viewer.