- Timestamp:
- 04/21/10 06:14:03 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs
r3080 r3454 95 95 chart.Titles.Clear(); 96 96 chart.Series.Clear(); 97 if (Content == null) { 98 Caption = "DataTable"; 99 chart.Enabled = false; 100 } else { 97 Caption = "DataTable"; 98 if (Content != null) { 101 99 Caption = Content.Name + " (" + Content.GetType().Name + ")"; 102 chart.Enabled = true;103 100 chart.Titles.Add(new Title(Content.Name, Docking.Top)); 104 101 foreach (DataRow row in Content.Rows) 105 102 AddDataRow(row); 106 103 } 104 SetEnabledStateOfControls(); 105 } 106 107 protected override void OnReadOnlyChanged() { 108 base.OnReadOnlyChanged(); 109 SetEnabledStateOfControls(); 110 } 111 112 private void SetEnabledStateOfControls() { 113 chart.Enabled = Content != null; 107 114 } 108 115
Note: See TracChangeset
for help on using the changeset viewer.