Changeset 3483 for trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems
- Timestamp:
- 04/22/10 05:14:39 (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
r3416 r3483 24 24 using System.Linq; 25 25 using System.Windows.Forms; 26 using HeuristicLab.Common; 26 27 using HeuristicLab.MainForm; 27 28 … … 46 47 protected override void OnActiveViewChanged(object sender, EventArgs e) { 47 48 var views = from v in MainFormManager.MainForm.Views.OfType<IContentView>() 49 where v.Content != null 50 where v.Content is IStorableContent 48 51 where !v.Locked 49 52 select v; -
trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/SaveToolBarItem.cs
r3416 r3483 23 23 using System.Drawing; 24 24 using System.Windows.Forms; 25 using HeuristicLab.Common; 25 26 using HeuristicLab.MainForm; 26 27 … … 45 46 protected override void OnActiveViewChanged(object sender, EventArgs e) { 46 47 IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView; 47 ToolStripItem.Enabled = (activeView != null) && (!activeView.Locked); 48 ToolStripItem.Enabled = (activeView != null) && (activeView.Content != null) && 49 (activeView.Content is IStorableContent) && !activeView.Locked; 48 50 } 49 51
Note: See TracChangeset
for help on using the changeset viewer.