Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/18/10 10:59:25 (15 years ago)
Author:
mkommend
Message:

registered on additional event ActiveContentChanged in !WinFormsUI to fire ActiveViewChanged (ticket #843)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.Test/3.2/ButtonItems/OpenToolStripButtonItem.cs

    r2514 r2636  
    2222      new OpenAction().Execute(MainFormManager.MainForm);
    2323    }
     24
     25    public override void ActiveViewChanged(object sender, EventArgs e) {
     26      this.ToolStripItem.Enabled = !this.ToolStripItem.Enabled;
     27      MainFormManager.MainForm.Title =
     28        MainFormManager.MainForm.ActiveView == null ? "null" : MainFormManager.MainForm.ActiveView.Caption;
     29    }
    2430  }
    2531}
Note: See TracChangeset for help on using the changeset viewer.