Changeset 2426 for branches/Mainform refactoring/HeuristicLab.MainForm.WindowsForms/3.2/DockingMainForm.cs
- Timestamp:
- 10/13/09 10:58:31 (15 years ago)
- Location:
- branches/Mainform refactoring/HeuristicLab.MainForm.WindowsForms
- Files:
-
- 2 added
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/Mainform refactoring/HeuristicLab.MainForm.WindowsForms/3.2/DockingMainForm.cs
r2420 r2426 30 30 using WeifenLuo.WinFormsUI.Docking; 31 31 32 namespace HeuristicLab.MainForm {32 namespace HeuristicLab.MainForm.WindowsForms { 33 33 public partial class DockingMainForm : MainFormBase { 34 34 public DockingMainForm() … … 53 53 DockContent dockForm = new DockForm(view); 54 54 dockForm.Activated += new EventHandler(DockFormActivated); 55 dockForm.FormClosing += new FormClosingEventHandler(view.FormClosing); 55 dockForm.FormClosing += new FormClosingEventHandler(view.OnClosing); 56 dockForm.FormClosed += new FormClosedEventHandler(view.OnClosed); 56 57 dockForm.FormClosed += new FormClosedEventHandler(DockFormClosed); 57 foreach (I ToolStripItem item in ToolStripItems)58 view. StateChanged += new EventHandler(item.ViewChanged);58 foreach (IUserInterfaceItem item in UserInterfaceItems) 59 view.Changed += new EventHandler(item.ViewChanged); 59 60 dockForm.Show(dockPanel); 60 61 } … … 75 76 ViewClosed(dockForm.View); 76 77 dockForm.Activated -= new EventHandler(DockFormActivated); 77 dockForm.FormClosing -= new FormClosingEventHandler(dockForm.View.FormClosing); 78 dockForm.FormClosing -= new FormClosingEventHandler(dockForm.View.OnClosing); 79 dockForm.FormClosed -= new FormClosedEventHandler(dockForm.View.OnClosed); 78 80 dockForm.FormClosed -= new FormClosedEventHandler(DockFormClosed); 79 foreach (I ToolStripItem item in ToolStripItems)80 dockForm.View. StateChanged -= new EventHandler(item.ViewChanged);81 foreach (IUserInterfaceItem item in UserInterfaceItems) 82 dockForm.View.Changed -= new EventHandler(item.ViewChanged); 81 83 } 82 84
Note: See TracChangeset
for help on using the changeset viewer.