Changeset 2656 for trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems
- Timestamp:
- 01/20/10 05:10:22 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveAllMenuItem.cs
r2555 r2656 34 34 public override void ActiveViewChanged(object sender, EventArgs e) { 35 35 var views = from v in MainFormManager.MainForm.Views 36 where v is I ItemView37 where CreatableAttribute.IsCreatable(((I ItemView)v).Item.GetType())36 where v is IObjectView 37 where CreatableAttribute.IsCreatable(((IObjectView)v).Object.GetType()) 38 38 select v; 39 39 ToolStripItem.Enabled = views.FirstOrDefault() != null; -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveAsMenuItem.cs
r2546 r2656 33 33 } 34 34 public override void ActiveViewChanged(object sender, EventArgs e) { 35 I ItemView activeView = MainFormManager.MainForm.ActiveView as IItemView;36 ToolStripItem.Enabled = ((activeView != null) && (CreatableAttribute.IsCreatable(activeView. Item.GetType())));35 IObjectView activeView = MainFormManager.MainForm.ActiveView as IObjectView; 36 ToolStripItem.Enabled = ((activeView != null) && (CreatableAttribute.IsCreatable(activeView.Object.GetType()))); 37 37 } 38 38 -
trunk/sources/HeuristicLab.Optimizer/3.3/MenuItems/SaveMenuItem.cs
r2546 r2656 36 36 } 37 37 public override void ActiveViewChanged(object sender, EventArgs e) { 38 I ItemView activeView = MainFormManager.MainForm.ActiveView as IItemView;39 ToolStripItem.Enabled = ((activeView != null) && (CreatableAttribute.IsCreatable(activeView. Item.GetType())));38 IObjectView activeView = MainFormManager.MainForm.ActiveView as IObjectView; 39 ToolStripItem.Enabled = ((activeView != null) && (CreatableAttribute.IsCreatable(activeView.Object.GetType()))); 40 40 } 41 41
Note: See TracChangeset
for help on using the changeset viewer.