Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/19/10 00:09:19 (12 years ago)
Author:
mkommend
Message:

enhanced viewHost (forwarding of view events, activeView property,...) (ticket #972)

File:
1 edited

Legend:

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

    r3398 r3403  
    8282
    8383      this.IsShown = true;
    84       mainform.ShowView(this, firstTimeShown);
     84      mainform.ShowView(this);
    8585      if (firstTimeShown) {
    8686        Form form = mainform.GetForm(this);
     
    146146    }
    147147
    148     protected virtual void OnShown(ViewShownEventArgs e) {
    149     }
    150 
    151     protected virtual void OnHidden(EventArgs e) {
     148    internal protected virtual void OnShown(ViewShownEventArgs e) {
     149    }
     150
     151    internal protected virtual void OnHidden(EventArgs e) {
    152152    }
    153153
     
    170170    }
    171171
    172     protected virtual void OnClosing(FormClosingEventArgs e) {
     172    internal protected virtual void OnClosing(FormClosingEventArgs e) {
    173173    }
    174174
     
    185185    }
    186186
    187     protected virtual void OnClosed(FormClosedEventArgs e) {
     187    internal protected virtual void OnClosed(FormClosedEventArgs e) {
    188188    }
    189189
     
    215215    public void ResumeRepaint(bool refresh) {
    216216      if (InvokeRequired)
    217         Invoke((Action<bool>)ResumeRepaint,refresh);
    218       else
    219       ((Control)this).ResumeRepaint(refresh);
     217        Invoke((Action<bool>)ResumeRepaint, refresh);
     218      else
     219        ((Control)this).ResumeRepaint(refresh);
    220220    }
    221221  }
Note: See TracChangeset for help on using the changeset viewer.