Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/10/09 10:11:28 (15 years ago)
Author:
mkommend
Message:

added ViewShown, ViewHidden and ViewClosed events in MainForm (ticket #771)

File:
1 edited

Legend:

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

    r2458 r2548  
    4242    }
    4343
    44     public override bool ShowView(IView view) {
    45       if (InvokeRequired) return (bool)Invoke((Func<IView, bool>)ShowView, view);
     44    protected override void Show(IView view, bool firstTimeShown) {
     45      if (InvokeRequired) Invoke((Action<IView, bool>)Show, view, firstTimeShown);
    4646      else {
    47         bool ret = base.ShowView(view);
    48         if (ret)
     47        base.Show(view, firstTimeShown);
     48        if (firstTimeShown)
    4949          ((DockForm)GetForm(view)).Show(dockPanel);
    5050        else
    5151          ((DockForm)GetForm(view)).Activate();
    52         return ret;
    5352      }
    5453    }
    55     public override void HideView(IView view) {
     54
     55    protected override void Hide(IView view) {
    5656      if (InvokeRequired) Invoke((Action<IView>)HideView, view);
    5757      else {
    5858        Form form = base.GetForm(view);
    59         if (form != null)
     59        if (form != null) {
    6060          ((DockForm)form).Hide();
     61        }
    6162      }
    6263    }
Note: See TracChangeset for help on using the changeset viewer.