Changeset 14984 for trunk/sources/HeuristicLab.Analysis.Views/3.3/ScatterPlotDataRowVisualPropertiesControl.cs
- Timestamp:
- 05/15/17 16:48:07 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/ScatterPlotDataRowVisualPropertiesControl.cs
r14493 r14984 23 23 using System.Drawing; 24 24 using System.Windows.Forms; 25 using HeuristicLab.Common.Resources; 25 26 using HeuristicLab.MainForm; 26 27 using HeuristicLab.MainForm.WindowsForms; … … 45 46 pointStyleComboBox.DataSource = Enum.GetValues(typeof(ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle)); 46 47 regressionTypeComboBox.DataSource = Enum.GetValues(typeof(ScatterPlotDataRowVisualProperties.ScatterPlotDataRowRegressionType)); 48 clearColorButton.BackColor = Color.Transparent; 49 clearColorButton.BackgroundImage = VSImageLibrary.Delete; 47 50 SetEnabledStateOfControls(); 48 51 } … … 87 90 pointStyleComboBox.Enabled = Content != null; 88 91 colorButton.Enabled = Content != null; 89 c olorButton.Enabled = Content != null;92 clearColorButton.Visible = Content != null && !Content.Color.IsEmpty; 90 93 isVisibleInLegendCheckBox.Enabled = Content != null; 91 94 pointSizeNumericUpDown.Enabled = Content != null; … … 111 114 colorButton.BackColor = Content.Color; 112 115 colorButton.Text = String.Empty; 116 clearColorButton.Visible = true; 117 } 118 } 119 120 private void clearColorButton_Click(object sender, EventArgs e) { 121 if (!SuppressEvents && Content != null) { 122 Content.Color = Color.Empty; 123 colorButton.BackColor = SystemColors.Control; 124 colorButton.Text = "?"; 125 clearColorButton.Visible = false; 113 126 } 114 127 }
Note: See TracChangeset
for help on using the changeset viewer.