- Timestamp:
- 04/22/10 15:50:02 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/MainForm.cs
r3437 r3488 91 91 protected void AddViewFormCombination(IView view, Form form) { 92 92 this.views.Add(view, form); 93 view.Changed += new EventHandler(View Changed);93 view.Changed += new EventHandler(View_Changed); 94 94 } 95 95 … … 156 156 157 157 public event EventHandler Changed; 158 protected void FireMainFormChanged() {158 protected void OnChanged() { 159 159 if (InvokeRequired) 160 Invoke((MethodInvoker) FireMainFormChanged);160 Invoke((MethodInvoker)OnChanged); 161 161 else { 162 162 EventHandler handler = Changed; … … 254 254 } 255 255 256 private void View Changed(object sender, EventArgs e) {256 private void View_Changed(object sender, EventArgs e) { 257 257 IView view = (IView)sender; 258 258 if (view == this.ActiveView) 259 259 this.OnActiveViewChanged(); 260 this.OnChanged(); 260 261 } 261 262 … … 283 284 IView view = GetView(form); 284 285 285 view.Changed -= new EventHandler(View Changed);286 view.Changed -= new EventHandler(View_Changed); 286 287 form.Activated -= new EventHandler(FormActivated); 287 288 form.FormClosed -= new FormClosedEventHandler(ChildFormClosed);
Note: See TracChangeset
for help on using the changeset viewer.