- Timestamp:
- 03/07/10 06:40:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/SaveToolBarItem.cs
r2796 r2958 24 24 using System.Windows.Forms; 25 25 using HeuristicLab.Core; 26 using HeuristicLab.Core.Views; 26 27 using HeuristicLab.MainForm; 27 28 … … 46 47 protected override void OnActiveViewChanged(object sender, EventArgs e) { 47 48 IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView; 48 ToolStripItem.Enabled = ((activeView != null) && (CreatableAttribute.IsCreatable(activeView.Content.GetType()))); 49 bool enable = ((activeView != null) && (CreatableAttribute.IsCreatable(activeView.Content.GetType()))); 50 ItemView itemView = MainFormManager.MainForm.ActiveView as ItemView; 51 if ((enable) && (itemView != null)) enable = itemView.EnableFileOperations; 52 ToolStripItem.Enabled = enable; 49 53 } 50 54
Note: See TracChangeset
for help on using the changeset viewer.