Changeset 14498 for branches/symbreg-factors-2650/HeuristicLab.Analysis.Views/3.3/ScatterPlotDataRowVisualPropertiesControl.cs
- Timestamp:
- 12/17/16 15:42:19 (8 years ago)
- Location:
- branches/symbreg-factors-2650
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/symbreg-factors-2650
- Property svn:mergeinfo changed
/trunk/sources merged: 14457-14458,14463-14465,14468-14469,14475-14476,14478-14479,14481-14483,14486,14493-14494
- Property svn:mergeinfo changed
-
branches/symbreg-factors-2650/HeuristicLab.Analysis.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Analysis.Views merged: 14457-14458,14493
- Property svn:mergeinfo changed
-
branches/symbreg-factors-2650/HeuristicLab.Analysis.Views/3.3/ScatterPlotDataRowVisualPropertiesControl.cs
r14185 r14498 44 44 InitializeComponent(); 45 45 pointStyleComboBox.DataSource = Enum.GetValues(typeof(ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle)); 46 regressionTypeComboBox.DataSource = Enum.GetValues(typeof(ScatterPlotDataRowVisualProperties.ScatterPlotDataRowRegressionType)); 46 47 SetEnabledStateOfControls(); 47 48 } … … 57 58 pointSizeNumericUpDown.Value = 1; 58 59 displayNameTextBox.Text = String.Empty; 60 regressionTypeComboBox.SelectedIndex = -1; 61 polynomialRegressionOrderNumericUpDown.Value = 2; 62 isRegressionVisibleInLegendCheckBox.Checked = false; 63 regressionLegendTextBox.Text = string.Empty; 59 64 } else { 60 65 displayNameTextBox.Text = Content.DisplayName; … … 69 74 pointSizeNumericUpDown.Value = Content.PointSize; 70 75 isVisibleInLegendCheckBox.Checked = Content.IsVisibleInLegend; 76 regressionTypeComboBox.SelectedItem = Content.RegressionType; 77 polynomialRegressionOrderNumericUpDown.Value = Content.PolynomialRegressionOrder; 78 isRegressionVisibleInLegendCheckBox.Checked = Content.IsRegressionVisibleInLegend; 79 regressionLegendTextBox.Text = content.RegressionDisplayName; 71 80 } 72 81 } … … 82 91 pointSizeNumericUpDown.Enabled = Content != null; 83 92 displayNameTextBox.Enabled = Content != null; 93 regressionTypeComboBox.Enabled = Content != null; 94 polynomialRegressionOrderNumericUpDown.Enabled = Content != null && Content.RegressionType == ScatterPlotDataRowVisualProperties.ScatterPlotDataRowRegressionType.Polynomial; 95 orderLabel.Enabled = polynomialRegressionOrderNumericUpDown.Enabled; 96 isRegressionVisibleInLegendCheckBox.Enabled = Content != null && Content.RegressionType != ScatterPlotDataRowVisualProperties.ScatterPlotDataRowRegressionType.None; 97 regressionLegendTextBox.Enabled = Content != null && Content.RegressionType != ScatterPlotDataRowVisualProperties.ScatterPlotDataRowRegressionType.None; 84 98 } 85 99 … … 87 101 private void pointStyleComboBox_SelectedValueChanged(object sender, EventArgs e) { 88 102 if (!SuppressEvents && Content != null) { 89 ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyleselected = (ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle)pointStyleComboBox.SelectedValue;103 var selected = (ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle)pointStyleComboBox.SelectedValue; 90 104 Content.PointStyle = selected; 91 105 } … … 121 135 } 122 136 } 137 138 private void regressionTypeComboBox_SelectedValueChanged(object sender, EventArgs e) { 139 if (!SuppressEvents && Content != null) { 140 var selected = (ScatterPlotDataRowVisualProperties.ScatterPlotDataRowRegressionType)regressionTypeComboBox.SelectedValue; 141 Content.RegressionType = selected; 142 SetEnabledStateOfControls(); 143 } 144 } 145 146 private void polynomialRegressionOrderNumericUpDown_ValueChanged(object sender, EventArgs e) { 147 if (!SuppressEvents && Content != null) { 148 Content.PolynomialRegressionOrder = (int)polynomialRegressionOrderNumericUpDown.Value; 149 } 150 } 151 152 private void isRegressionVisibleInLegendCheckBox_CheckedChanged(object sender, EventArgs e) { 153 if (!SuppressEvents && Content != null) { 154 Content.IsRegressionVisibleInLegend = isRegressionVisibleInLegendCheckBox.Checked; 155 } 156 } 157 158 private void regressionLegendTextBox_Validated(object sender, EventArgs e) { 159 if (!SuppressEvents && Content != null) { 160 Content.RegressionDisplayName = regressionLegendTextBox.Text; 161 } 162 } 123 163 #endregion 124 164 }
Note: See TracChangeset
for help on using the changeset viewer.