Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/30/12 13:09:15 (12 years ago)
Author:
sforsten
Message:

#1784: merged everything from trunk revision 7770 to branch ProblemInstancesRegressionAndClassification

Location:
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views

  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views/3.3/RunView.cs

    r7259 r7771  
    4444    }
    4545
    46     public override bool ReadOnly {
    47       get { return true; }
    48       set { /*not needed because runs are always readonly */}
    49     }
    50 
    5146    /// <summary>
    5247    /// Initializes a new instance of <see cref="VariableView"/> with caption "Variable".
     
    8378      listView.Enabled = Content != null;
    8479      detailsGroupBox.Enabled = (Content != null) && (listView.SelectedItems.Count == 1);
    85       viewHost.Enabled = Content != null;
    86       viewHost.ReadOnly = ReadOnly;
    8780      changeColorButton.Enabled = Content != null;
    8881      showAlgorithmButton.Enabled = Content != null && Content.Algorithm != null && !Locked;
     82    }
     83
     84    protected override void PropagateStateChanges(Control control, Type type, System.Reflection.PropertyInfo propertyInfo) {
     85      if (propertyInfo.Name == "ReadOnly") return;
     86      base.PropagateStateChanges(control, type, propertyInfo);
    8987    }
    9088
Note: See TracChangeset for help on using the changeset viewer.