Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/19/10 21:00:30 (15 years ago)
Author:
mkommend
Message:

implemented ContentViews and propagation of view state changes (ticket #982)

Location:
trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/SaveAllToolBarItem.cs

    r2961 r3416  
    4646    protected override void OnActiveViewChanged(object sender, EventArgs e) {
    4747      var views = from v in MainFormManager.MainForm.Views.OfType<IContentView>()
    48                   where v.SaveEnabled
     48                  where !v.Locked
    4949                  select v;
    5050      ToolStripItem.Enabled = views.FirstOrDefault() != null;
  • trunk/sources/HeuristicLab.Optimizer/3.3/ToolBarItems/SaveToolBarItem.cs

    r2961 r3416  
    4545    protected override void OnActiveViewChanged(object sender, EventArgs e) {
    4646      IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView;
    47       ToolStripItem.Enabled = (activeView != null) && (activeView.SaveEnabled);
     47      ToolStripItem.Enabled = (activeView != null) && (!activeView.Locked);
    4848    }
    4949
Note: See TracChangeset for help on using the changeset viewer.