Changeset 3416 for trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems
- Timestamp:
- 04/19/10 21:00:30 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/SaveAllToolBarItem.cs
r2961 r3416 46 46 protected override void OnActiveViewChanged(object sender, EventArgs e) { 47 47 var views = from v in MainFormManager.MainForm.Views.OfType<IContentView>() 48 where v.SaveEnabled48 where !v.Locked 49 49 select v; 50 50 ToolStripItem.Enabled = views.FirstOrDefault() != null; -
trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/SaveToolBarItem.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
Note: See TracChangeset
for help on using the changeset viewer.