Changeset 3416 for trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems
- Timestamp:
- 04/19/10 21:00:30 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/CopyToClipboardMenuItem.cs
r3376 r3416 48 48 protected override void OnActiveViewChanged(object sender, EventArgs e) { 49 49 ItemView activeView = MainFormManager.MainForm.ActiveView as ItemView; 50 ToolStripItem.Enabled = (activeView != null) && ( activeView.SaveEnabled);50 ToolStripItem.Enabled = (activeView != null) && (!activeView.Locked); 51 51 } 52 52 53 53 public override void Execute() { 54 54 ItemView activeView = MainFormManager.MainForm.ActiveView as ItemView; 55 if ((activeView != null) && ( activeView.SaveEnabled)) {55 if ((activeView != null) && (!activeView.Locked)) { 56 56 Clipboard<IItem> clipboard = ((OptimizerMainForm)MainFormManager.MainForm).Clipboard; 57 57 clipboard.AddItem((IItem)activeView.Content.Clone()); -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveAllMenuItem.cs
r2961 r3416 47 47 protected override void OnActiveViewChanged(object sender, EventArgs e) { 48 48 var views = from v in MainFormManager.MainForm.Views.OfType<IContentView>() 49 where v.SaveEnabled49 where !v.Locked 50 50 select v; 51 51 ToolStripItem.Enabled = views.FirstOrDefault() != null; -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveAsMenuItem.cs
r2961 r3416 45 45 protected override void OnActiveViewChanged(object sender, EventArgs e) { 46 46 IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView; 47 ToolStripItem.Enabled = (activeView != null) && ( activeView.SaveEnabled);47 ToolStripItem.Enabled = (activeView != null) && (!activeView.Locked); 48 48 } 49 49 -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveMenuItem.cs
r2961 r3416 49 49 protected override void OnActiveViewChanged(object sender, EventArgs e) { 50 50 IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView; 51 ToolStripItem.Enabled = (activeView != null) && ( activeView.SaveEnabled);51 ToolStripItem.Enabled = (activeView != null) && (!activeView.Locked); 52 52 } 53 53
Note: See TracChangeset
for help on using the changeset viewer.