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)

Location:
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3
Files:
2 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        }
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/View.cs

    r3557 r3727  
    6262        } else {
    6363          if (value != readOnly) {
     64            this.SuspendRepaint();
    6465            readOnly = value;
    6566            PropertyInfo prop = typeof(IView).GetProperty("ReadOnly");
    6667            PropagateStateChanges(this, typeof(IView), prop);
    6768            OnReadOnlyChanged();
     69            this.ResumeRepaint(true);
    6870          }
    6971        }
Note: See TracChangeset for help on using the changeset viewer.