- Timestamp:
- 12/14/10 11:30:55 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Analysis/3.3/DataVisualization
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/DataVisualization/DataRow.cs
r4887 r5097 34 34 [Item("DataRow", "A row of data values.")] 35 35 [StorableClass] 36 public sealed class DataRow : NamedItem { 36 public class DataRow : NamedItem { 37 [Storable(Name = "VisualProperties")] 37 38 private DataRowVisualProperties visualProperties; 38 39 public DataRowVisualProperties VisualProperties { … … 54 55 55 56 #region Persistence Properties 56 [Storable(Name = "VisualProperties")]57 private DataRowVisualProperties StorableVisualProperties {58 get { return VisualProperties; }59 set { VisualProperties = value; }60 }61 57 [Storable(Name = "values")] 62 58 private IEnumerable<double> StorableValues { … … 67 63 68 64 [StorableConstructor] 69 pr ivateDataRow(bool deserializing) : base(deserializing) { }70 pr ivateDataRow(DataRow original, Cloner cloner)65 protected DataRow(bool deserializing) : base(deserializing) { } 66 protected DataRow(DataRow original, Cloner cloner) 71 67 : base(original, cloner) { 72 68 this.VisualProperties = (DataRowVisualProperties)cloner.Clone(original.visualProperties); … … 107 103 108 104 public event EventHandler VisualPropertiesChanged; 109 pr ivatevoid OnVisualPropertiesChanged() {105 protected virtual void OnVisualPropertiesChanged() { 110 106 EventHandler handler = VisualPropertiesChanged; 111 107 if (handler != null) handler(this, EventArgs.Empty); -
trunk/sources/HeuristicLab.Analysis/3.3/DataVisualization/DataTable.cs
r4887 r5097 37 37 [Item("DataTable", "A table of data values.")] 38 38 [StorableClass] 39 public sealedclass DataTable : NamedItem, IStringConvertibleMatrix {39 public class DataTable : NamedItem, IStringConvertibleMatrix { 40 40 public override Image ItemImage { 41 41 get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Performance; } 42 42 } 43 43 44 [Storable(Name = "VisualProperties")] 44 45 private DataTableVisualProperties visualProperties; 45 46 public DataTableVisualProperties VisualProperties { … … 62 63 63 64 #region Persistence Properties 64 [Storable(Name = "VisualProperties")]65 private DataTableVisualProperties StorableVisualProperties {66 get { return VisualProperties; }67 set { VisualProperties = value; }68 }69 65 [Storable(Name = "rows")] 70 66 private IEnumerable<DataRow> StorableRows { … … 75 71 76 72 [StorableConstructor] 77 pr ivateDataTable(bool deserializing) : base(deserializing) { }78 pr ivateDataTable(DataTable original, Cloner cloner)73 protected DataTable(bool deserializing) : base(deserializing) { } 74 protected DataTable(DataTable original, Cloner cloner) 79 75 : base(original, cloner) { 80 76 this.VisualProperties = (DataTableVisualProperties)cloner.Clone(original.visualProperties); … … 114 110 115 111 public event EventHandler VisualPropertiesChanged; 116 pr ivatevoid OnVisualPropertiesChanged() {112 protected virtual void OnVisualPropertiesChanged() { 117 113 EventHandler handler = VisualPropertiesChanged; 118 114 if (handler != null) handler(this, EventArgs.Empty); … … 123 119 } 124 120 125 pr ivatevoid RegisterRowsEvents() {121 protected virtual void RegisterRowsEvents() { 126 122 rows.ItemsAdded += new CollectionItemsChangedEventHandler<DataRow>(rows_ItemsAdded); 127 123 rows.ItemsRemoved += new CollectionItemsChangedEventHandler<DataRow>(rows_ItemsRemoved); … … 158 154 } 159 155 160 pr ivatevoid RegisterRowEvents(DataRow row) {156 protected virtual void RegisterRowEvents(DataRow row) { 161 157 row.Values.ItemsAdded += new CollectionItemsChangedEventHandler<IndexedItem<double>>(Values_ItemsAdded); 162 158 row.Values.ItemsMoved += new CollectionItemsChangedEventHandler<IndexedItem<double>>(Values_ItemsMoved); … … 165 161 row.Values.CollectionReset += new CollectionItemsChangedEventHandler<IndexedItem<double>>(Values_CollectionReset); 166 162 } 167 pr ivatevoid DeregisterRowEvents(DataRow row) {163 protected virtual void DeregisterRowEvents(DataRow row) { 168 164 row.Values.ItemsAdded -= new CollectionItemsChangedEventHandler<IndexedItem<double>>(Values_ItemsAdded); 169 165 row.Values.ItemsMoved -= new CollectionItemsChangedEventHandler<IndexedItem<double>>(Values_ItemsMoved); … … 233 229 234 230 public event EventHandler<EventArgs<int, int>> ItemChanged; 235 pr ivatevoid OnItemChanged(int rowIndex, int columnIndex) {231 protected virtual void OnItemChanged(int rowIndex, int columnIndex) { 236 232 var handler = ItemChanged; 237 233 if (handler != null) handler(this, new EventArgs<int, int>(rowIndex, columnIndex)); … … 239 235 } 240 236 public event EventHandler Reset; 241 pr ivatevoid OnReset() {237 protected virtual void OnReset() { 242 238 var handler = Reset; 243 239 if (handler != null) handler(this, EventArgs.Empty); 244 240 } 245 241 public event EventHandler ColumnNamesChanged; 246 pr ivatevoid OnColumnNamesChanged() {242 protected virtual void OnColumnNamesChanged() { 247 243 var handler = ColumnNamesChanged; 248 244 if (handler != null) handler(this, EventArgs.Empty); 249 245 } 250 246 public event EventHandler RowNamesChanged; 251 pr ivatevoid OnRowNamesChanged() {247 protected virtual void OnRowNamesChanged() { 252 248 var handler = RowNamesChanged; 253 249 if (handler != null) handler(this, EventArgs.Empty); 254 250 } 255 251 public event EventHandler SortableViewChanged; 256 pr ivatevoid OnSortableViewChanged() {252 protected virtual void OnSortableViewChanged() { 257 253 var handler = SortableViewChanged; 258 254 if (handler != null) handler(this, EventArgs.Empty);
Note: See TracChangeset
for help on using the changeset viewer.