Changeset 8736
- Timestamp:
- 10/04/12 13:02:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/InteractiveSymbolicRegressionSolutionSimplifierView.cs
r8730 r8736 124 124 protected override void OnModelChanged() { 125 125 base.OnModelChanged(); 126 btnOptimizeConstants.Enabled = 127 SymbolicRegressionConstantOptimizationEvaluator.CanOptimizeConstants(Content.Model.SymbolicExpressionTree); 126 if (Content != null) 127 btnOptimizeConstants.Enabled = 128 SymbolicRegressionConstantOptimizationEvaluator.CanOptimizeConstants(Content.Model.SymbolicExpressionTree); 129 else 130 btnOptimizeConstants.Enabled = false; 128 131 } 129 132 protected override void OnContentChanged() { 130 133 base.OnContentChanged(); 131 134 base.OnModelChanged(); 132 btnOptimizeConstants.Enabled = 133 SymbolicRegressionConstantOptimizationEvaluator.CanOptimizeConstants(Content.Model.SymbolicExpressionTree); 135 if (Content != null) 136 btnOptimizeConstants.Enabled = 137 SymbolicRegressionConstantOptimizationEvaluator.CanOptimizeConstants(Content.Model.SymbolicExpressionTree); 138 else 139 btnOptimizeConstants.Enabled = false; 134 140 } 135 141
Note: See TracChangeset
for help on using the changeset viewer.