Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/20/10 11:16:18 (14 years ago)
Author:
mkommend
Message:

Refactored View.Enabled to hide the Control.Enabled property and additionally implement IView.Enabled explicitly (ticket #1155).

File:
1 edited

Legend:

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

    r4436 r4449  
    7676    }
    7777
    78     bool IView.Enabled {
     78    public new bool Enabled {
    7979      get { return base.Enabled; }
    8080      set {
     
    8282          this.SuspendRepaint();
    8383          base.Enabled = value;
    84           bool isTopLevelView = MainFormManager.MainForm.Views.Contains(this);
    85           this.ResumeRepaint(isTopLevelView);
     84          this.ResumeRepaint(true);
    8685        }
    8786      }
     87    }
     88
     89    bool IView.Enabled {
     90      get { return Enabled; }
     91      set { Enabled = value; }
    8892    }
    8993
Note: See TracChangeset for help on using the changeset viewer.