Changeset 18027 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/ShapeConstraintView.cs
- Timestamp:
- 07/20/21 18:13:55 (3 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Problems.DataAnalysis.Views merged: 17931,17937-17939,17976,17978,18020
- Property svn:mergeinfo changed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/ShapeConstraintView.cs
r17928 r18027 65 65 protected override void SetEnabledStateOfControls() { 66 66 base.SetEnabledStateOfControls(); 67 variableInput.Enabled = Content != null && !Locked && !ReadOnly ;67 variableInput.Enabled = Content != null && !Locked && !ReadOnly && Content.Variable != String.Empty; 68 68 numberOfDerivationsComboBox.Enabled = Content != null && !Locked && !ReadOnly; 69 69 lowerboundInput.Enabled = Content != null && !Locked && !ReadOnly; … … 112 112 numberOfDerivationsComboBox.Enabled = false; 113 113 numberOfDerivationsComboBox.SelectedItem = null; 114 numberOfDerivationsComboBox.Text = "0";115 114 } else { 116 numberOfDerivationLabel.Visible = true;117 numberOfDerivationsComboBox.Visible = true;118 115 numberOfDerivationsComboBox.Enabled = true; 119 116 numberOfDerivationsComboBox.SelectedItem = Content.NumberOfDerivations; 120 117 } 121 118 122 regionView.Content = Content.Regions; 119 if (Content.Regions.Count > 0) { 120 regionView.Content = Content.Regions; 121 regionLabel.Visible = true; 122 regionView.Visible = true; 123 } else { 124 regionLabel.Visible = false; 125 regionView.Visible = false; 126 } 123 127 } 124 128 … … 197 201 } 198 202 203 private void variableInput_TextChanged(object sender, EventArgs e) { 204 var value = variableInput.Text; 205 if (!String.IsNullOrEmpty(value)) Content.Variable = value; 206 } 199 207 200 208 #endregion … … 206 214 } 207 215 208 #endregion 216 217 #endregion 209 218 } 210 219 }
Note: See TracChangeset
for help on using the changeset viewer.