- Timestamp:
- 12/14/09 00:23:57 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/SaveAllToolBarItem.cs
r2546 r2555 8 8 using HeuristicLab.MainForm.WindowsForms; 9 9 using HeuristicLab.Common.Resources; 10 using HeuristicLab.Core; 11 using HeuristicLab.Core.Views; 10 12 11 13 namespace HeuristicLab.Optimizer { … … 28 30 } 29 31 public override void ActiveViewChanged(object sender, EventArgs e) { 30 ToolStripItem.Enabled = MainFormManager.MainForm.Views.FirstOrDefault() != null; 32 var views = from v in MainFormManager.MainForm.Views 33 where v is IItemView 34 where CreatableAttribute.IsCreatable(((IItemView)v).Item.GetType()) 35 select v; 36 ToolStripItem.Enabled = views.FirstOrDefault() != null; 31 37 } 32 38
Note: See TracChangeset
for help on using the changeset viewer.