Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/13/09 10:58:31 (15 years ago)
Author:
mkommend
Message:

initial version of refactored mainform (ticket #771)

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  
    3030using WeifenLuo.WinFormsUI.Docking;
    3131
    32 namespace HeuristicLab.MainForm {
     32namespace HeuristicLab.MainForm.WindowsForms {
    3333  public partial class DockingMainForm : MainFormBase {
    3434    public DockingMainForm()
     
    5353          DockContent dockForm = new DockForm(view);
    5454          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);
    5657          dockForm.FormClosed += new FormClosedEventHandler(DockFormClosed);
    57           foreach (IToolStripItem item in ToolStripItems)
    58             view.StateChanged += new EventHandler(item.ViewChanged);
     58          foreach (IUserInterfaceItem item in UserInterfaceItems)
     59            view.Changed += new EventHandler(item.ViewChanged);
    5960          dockForm.Show(dockPanel);
    6061        }
     
    7576      ViewClosed(dockForm.View);
    7677      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);
    7880      dockForm.FormClosed -= new FormClosedEventHandler(DockFormClosed);
    79       foreach (IToolStripItem 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);
    8183    }
    8284
Note: See TracChangeset for help on using the changeset viewer.