Changeset 2555 for trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems
- Timestamp:
- 12/14/09 00:23:57 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveAllMenuItem.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.MenuItems { … … 31 33 } 32 34 public override void ActiveViewChanged(object sender, EventArgs e) { 33 ToolStripItem.Enabled = MainFormManager.MainForm.Views.FirstOrDefault() != null; 35 var views = from v in MainFormManager.MainForm.Views 36 where v is IItemView 37 where CreatableAttribute.IsCreatable(((IItemView)v).Item.GetType()) 38 select v; 39 ToolStripItem.Enabled = views.FirstOrDefault() != null; 34 40 } 35 41
Note: See TracChangeset
for help on using the changeset viewer.