Changeset 16149 for branches/2947_ConfigurableIndexedDataTable/HeuristicLab.Analysis.Views/3.3/IndexedDataTableView.cs
- Timestamp:
- 09/15/18 11:47:03 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2947_ConfigurableIndexedDataTable/HeuristicLab.Analysis.Views/3.3/IndexedDataTableView.cs
r15583 r16149 20 20 #endregion 21 21 22 using HeuristicLab.Collections;23 using HeuristicLab.Core.Views;24 using HeuristicLab.MainForm;25 22 using System; 26 23 using System.Collections.Generic; … … 29 26 using System.Windows.Forms; 30 27 using System.Windows.Forms.DataVisualization.Charting; 28 using HeuristicLab.Collections; 29 using HeuristicLab.Core.Views; 30 using HeuristicLab.MainForm; 31 31 32 32 namespace HeuristicLab.Analysis.Views { 33 33 [View("IndexedDataTable View")] 34 34 [Content(typeof(IndexedDataTable<>), true)] 35 public partial class IndexedDataTableView<T> : NamedItemView {35 public partial class IndexedDataTableView<T> : NamedItemView, IConfigureableView { 36 36 protected List<Series> invisibleSeries; 37 37 protected Dictionary<IObservableList<Tuple<T, double>>, IndexedDataRow<T>> valuesRowsTable; … … 131 131 base.SetEnabledStateOfControls(); 132 132 chart.Enabled = Content != null; 133 } 134 135 public void ShowConfiguration() { 136 if (Content != null) { 137 using (var dialog = new DataTableVisualPropertiesDialog<IndexedDataRow<T>>(Content)) { 138 dialog.ShowDialog(this); 139 } 140 } else MessageBox.Show("Nothing to configure."); 133 141 } 134 142 … … 211 219 if (Content.VisualProperties.TitleFont != null) chart.Titles[0].Font = Content.VisualProperties.TitleFont; 212 220 if (!Content.VisualProperties.TitleColor.IsEmpty) chart.Titles[0].ForeColor = Content.VisualProperties.TitleColor; 221 chart.Titles[0].Text = Content.VisualProperties.Title; 222 chart.Titles[0].Visible = !string.IsNullOrEmpty(Content.VisualProperties.Title); 213 223 214 224 if (Content.VisualProperties.AxisTitleFont != null) area.AxisX.TitleFont = Content.VisualProperties.AxisTitleFont;
Note: See TracChangeset
for help on using the changeset viewer.