Changeset 15042
- Timestamp:
- 06/21/17 16:17:57 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs
r14982 r15042 36 36 protected List<Series> invisibleSeries; 37 37 protected Dictionary<IObservableList<double>, DataRow> valuesRowsTable; 38 protected bool showChartOnly = false; 38 39 39 40 public new DataTable Content { … … 42 43 } 43 44 44 public bool Show Name{45 get { return nameTextBox.Visible; }45 public bool ShowChartOnly { 46 get { return showChartOnly; } 46 47 set { 47 if (nameTextBox.Visible != value) { 48 foreach (Control c in Controls) { 49 if (c == chart) continue; 50 c.Visible = value; 51 } 52 chart.Dock = value ? DockStyle.None : DockStyle.Fill; 48 if (showChartOnly != value) { 49 showChartOnly = value; 50 UpdateControlsVisibility(); 53 51 } 54 52 } … … 133 131 } else MessageBox.Show("Nothing to configure."); 134 132 } 133 134 protected void UpdateControlsVisibility() { 135 if (InvokeRequired) 136 Invoke(new Action(UpdateControlsVisibility)); 137 else { 138 foreach (Control c in Controls) { 139 if (c == chart) continue; 140 c.Visible = !showChartOnly; 141 } 142 chart.Dock = showChartOnly ? DockStyle.Fill : DockStyle.None; 143 } 144 } 145 135 146 protected virtual void AddDataRows(IEnumerable<DataRow> rows) { 136 147 foreach (var row in rows) {
Note: See TracChangeset
for help on using the changeset viewer.