Changeset 2960 for trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems
- Timestamp:
- 03/07/10 23:44:47 (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
r2958 r2960 49 49 var views = from v in MainFormManager.MainForm.Views 50 50 where v is IContentView 51 where CreatableAttribute.IsCreatable(((IContentView)v).Content.GetType())52 51 where ((v is ItemView) && ((ItemView)v).EnableFileOperations) || (!(v is ItemView)) 53 52 select v; -
trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/SaveToolBarItem.cs
r2958 r2960 47 47 protected override void OnActiveViewChanged(object sender, EventArgs e) { 48 48 IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView; 49 bool enable = ((activeView != null) && (CreatableAttribute.IsCreatable(activeView.Content.GetType())));49 bool enable = activeView != null; 50 50 ItemView itemView = MainFormManager.MainForm.ActiveView as ItemView; 51 51 if ((enable) && (itemView != null)) enable = itemView.EnableFileOperations;
Note: See TracChangeset
for help on using the changeset viewer.