Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3720


Ignore:
Timestamp:
05/08/10 17:56:19 (15 years ago)
Author:
mkommend
Message:

added Suspend- and ResumeRepaint calls in ViewHost and ViewHostPanel (ticket #887)

Location:
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/ViewHost.cs

    r3709 r3720  
    182182    #region forwarding of view events
    183183    protected override void OnReadOnlyChanged() {
     184      this.SuspendRepaint();
    184185      base.OnReadOnlyChanged();
    185186      foreach (IContentView view in cachedViews.Values)
    186187        view.ReadOnly = this.ReadOnly;
     188      this.ResumeRepaint(true);
    187189    }
    188190    protected override void OnLockedChanged() {
     191      this.SuspendRepaint();
    189192      base.OnLockedChanged();
    190193      foreach (IContentView view in cachedViews.Values)
    191194        view.Locked = this.Locked;
     195      this.ResumeRepaint(true);
    192196    }
    193197    internal protected override void OnShown(ViewShownEventArgs e) {
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/ViewHostPanel.cs

    r3590 r3720  
    4242
    4343    private void OnSizeChangedHelper(EventArgs e) {
     44      ((Control)this).SuspendRepaint();
    4445      base.OnSizeChanged(e);
     46      ((Control)this).ResumeRepaint(true);
    4547    }
    4648  }
Note: See TracChangeset for help on using the changeset viewer.