Changeset 17893 for branches/3073_IA_constraint_splitting_reintegration/HeuristicLab.Problems.DataAnalysis.Views/3.4/IntervalConstraintView.cs
- Timestamp:
- 03/16/21 08:55:43 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3073_IA_constraint_splitting_reintegration/HeuristicLab.Problems.DataAnalysis.Views/3.4/IntervalConstraintView.cs
r17891 r17893 45 45 protected override void OnContentChanged() { 46 46 base.OnContentChanged(); 47 this.regionView.Content = Content.Regions; 47 48 UpdateControls(); 48 49 } … … 64 65 lowerboundInput.Enabled = Content != null && !Locked && !ReadOnly; 65 66 upperboundInput.Enabled = Content != null && !Locked && !ReadOnly; 67 weightInput.Enabled = Content != null && !Locked && !ReadOnly; 66 68 } 67 69 … … 94 96 lowerboundInput.Text = string.Empty; 95 97 upperboundInput.Text = string.Empty; 98 weightInput.Text = string.Empty; 96 99 return; 97 100 } … … 99 102 lowerboundInput.Text = Content.Interval.LowerBound.ToString(); 100 103 upperboundInput.Text = Content.Interval.UpperBound.ToString(); 104 weightInput.Text = Content.Weight.ToString(); 101 105 102 106 variableInput.Text = Content.Variable; … … 111 115 numberderivationInput.SelectedItem = Content.NumberOfDerivations; 112 116 } 117 118 regionView.Content = Content.Regions; 113 119 } 114 120 … … 180 186 } 181 187 188 private void weightInput_TextChanged(object sender, EventArgs e) { 189 var value = ParseDoubleValue(weightInput.Text, weightInput, errorProvider); 190 if (!double.IsNaN(value)) Content.Weight = value; 191 } 192 193 182 194 #endregion 183 195 … … 188 200 } 189 201 190 202 #endregion 191 203 } 192 204 }
Note: See TracChangeset
for help on using the changeset viewer.