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).

Location:
trunk/sources/HeuristicLab.Optimization.Views/3.3
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/ResultView.cs

    r3904 r4435  
    4545
    4646    public override bool ReadOnly {
    47       get { return base.ReadOnly; }
     47      get { return true; }
    4848      set { /*not needed because results are always readonly */}
    4949    }
     
    5454    public ResultView() {
    5555      InitializeComponent();
    56       base.ReadOnly = true;
    5756    }
    5857
     
    9190      dataTypeTextBox.Enabled = Content != null;
    9291      viewHost.Enabled = Content != null;
     92      viewHost.ReadOnly = this.ReadOnly;
    9393    }
    9494
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionComparisonConstraintView.cs

    r4068 r4435  
    8686    protected override void SetEnabledStateOfControls() {
    8787      base.SetEnabledStateOfControls();
    88       txtConstraintData.ReadOnly = Content == null || this.ReadOnly;
     88      txtConstraintData.Enabled = Content != null;
     89      txtConstraintData.ReadOnly = ReadOnly;
    8990    }
    9091
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionConstraintView.cs

    r4152 r4435  
    8383    protected override void SetEnabledStateOfControls() {
    8484      base.SetEnabledStateOfControls();
    85       cmbConstraintColumn.Enabled = !this.ReadOnly && !this.Locked && Content != null;
    86       cmbConstraintOperation.Enabled = !this.ReadOnly && !this.Locked && Content != null;
     85      cmbConstraintColumn.Enabled = !this.ReadOnly && Content != null;
     86      cmbConstraintOperation.Enabled = !this.ReadOnly && Content != null;
    8787      chbActive.Enabled = !this.Locked && Content != null;
    8888    }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionEqualityConstraintView.cs

    r4152 r4435  
    4545    protected override void SetEnabledStateOfControls() {
    4646      base.SetEnabledStateOfControls();
    47       txtConstraintData.ReadOnly = Content == null || this.ReadOnly;
     47      txtConstraintData.Enabled = Content != null;
     48      txtConstraintData.ReadOnly = ReadOnly;
    4849    }
    4950
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionTabularView.cs

    r4200 r4435  
    3535    public RunCollectionTabularView() {
    3636      InitializeComponent();
    37       base.ReadOnly = true;
    3837    }
    3938
    4039    public override bool ReadOnly {
    41       get { return base.ReadOnly; }
     40      get { return true; }
    4241      set { /*not needed because results are always readonly */}
    4342    }
Note: See TracChangeset for help on using the changeset viewer.