Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/09/10 01:36:39 (14 years ago)
Author:
mkommend
Message:

added Suspend- and ResumeRepaint calls in View and ContentView (ticket #972)

File:
1 edited

Legend:

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

    r3566 r3727  
    4949        } else {
    5050          if (this.content != value) {
     51            this.SuspendRepaint();
    5152            if (this.content != null) this.DeregisterContentEvents();
    5253            this.content = value;
     
    5455            this.OnContentChanged();
    5556            this.OnChanged();
     57            this.ResumeRepaint(true);
    5658          }
    5759        }
     
    6870        } else {
    6971          if (value != locked) {
     72            this.SuspendRepaint();
    7073            locked = value;
    7174            PropertyInfo prop = typeof(IContentView).GetProperty("Locked");
     
    7376            OnLockedChanged();
    7477            OnChanged();
     78            this.ResumeRepaint(true);
    7579          }
    7680        }
Note: See TracChangeset for help on using the changeset viewer.