Changeset 2300 for trunk/sources
- Timestamp:
- 08/21/09 09:51:59 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm/3.2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm/3.2/Interfaces/IMainForm.cs
r2298 r2300 34 34 IView ActiveView { get; } 35 35 event EventHandler ActiveViewChanged; 36 event EventHandler MainFormChanged; 36 37 IEnumerable<IView> Views { get; } 37 38 -
trunk/sources/HeuristicLab.MainForm/3.2/Interfaces/IToolStripItem.cs
r2269 r2300 40 40 void ActiveViewChanged(object sender, EventArgs e); 41 41 void ViewChanged(object sender, EventArgs e); 42 void MainFormChanged(object sender, EventArgs e); 42 43 } 43 44 } -
trunk/sources/HeuristicLab.MainForm/3.2/MainFormBase.cs
r2298 r2300 98 98 } 99 99 100 public event EventHandler MainFormChanged; 101 public void FireMainFormChanged() { 102 OnMainFormChanged(); 103 } 104 protected virtual void OnMainFormChanged() { 105 if (MainFormChanged != null) 106 MainFormChanged(this, new EventArgs()); 107 } 108 100 109 protected List<IView> views; 101 110 public IEnumerable<IView> Views { … … 181 190 toolStripItem.Image = iToolStripItem.Image; 182 191 toolStripItem.DisplayStyle = iToolStripItem.DisplayStyle; 183 this.ActiveViewChanged += new EventHandler(iToolStripItem.ActiveViewChanged); 192 this.ActiveViewChanged += new EventHandler(iToolStripItem.ActiveViewChanged); 193 this.MainFormChanged += new EventHandler(iToolStripItem.MainFormChanged); 184 194 toolStripItem.Click += new EventHandler(ToolStripItemClicked); 185 195 this.toolStripItems.Add(iToolStripItem); -
trunk/sources/HeuristicLab.MainForm/3.2/ToolStripItemBase.cs
r2269 r2300 61 61 public virtual void ViewChanged(object sender, EventArgs e) { 62 62 } 63 64 public virtual void MainFormChanged(object sender, EventArgs e) { 65 } 63 66 #endregion 64 67 }
Note: See TracChangeset
for help on using the changeset viewer.