Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/19/10 19:43:05 (14 years ago)
Author:
mkommend
Message:

Adjusted the SetEnabledStateOfControls method in all views, added the Enabled property into the IView interface and adapted the ViewHost, View and ContentView class (ticket #1155).

File:
1 edited

Legend:

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

    r4068 r4435  
    6767        } else {
    6868          if (value != locked) {
    69             this.SuspendRepaint();
    7069            locked = value;
    7170            OnLockedChanged();
    72             this.SetEnabledStateOfControls();
     71            SetEnabledStateOfControls();
    7372            PropertyInfo prop = typeof(IContentView).GetProperty("Locked");
    7473            PropagateStateChanges(this, typeof(IContentView), prop);
    7574            OnChanged();
    76             this.ResumeRepaint(true);
    7775          }
    7876        }
     
    111109    /// </summary>
    112110    protected override void SetEnabledStateOfControls() {
     111      base.SetEnabledStateOfControls();
     112      Enabled = Content != null;
    113113    }
    114114  }
Note: See TracChangeset for help on using the changeset viewer.