Changeset 2255


Ignore:
Timestamp:
08/07/09 15:55:14 (12 years ago)
Author:
mkommend
Message:

corrected bug in MultipleDocumentMainForm !viewStateChanged were not handled (ticket #716)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm/3.2/MultipleDocumentMainForm.cs

    r2254 r2255  
    2424        form.FormClosing += new FormClosingEventHandler(MultipleDocumentFormClosing);
    2525        form.MdiParent = this;
     26        foreach (IToolStripItem item in viewStateChangeToolStripItems)
     27          view.StateChanged += new EventHandler(item.ViewStateChanged);
    2628        form.Show();
    2729      }
     
    4042      form.Activated -= new EventHandler(MultipleDocumentFormActivated);
    4143      form.FormClosing -= new FormClosingEventHandler(MultipleDocumentFormClosing);
     44      foreach (IToolStripItem item in viewStateChangeToolStripItems)
     45        form.View.StateChanged -= new EventHandler(item.ViewStateChanged);
    4246    }
    4347  }
Note: See TracChangeset for help on using the changeset viewer.