Changeset 6647 for branches/GP.Grammar.Editor/HeuristicLab.Analysis/3.3/DataVisualization/DataRowVisualProperties.cs
- Timestamp:
- 08/09/11 11:01:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Analysis/3.3/DataVisualization/DataRowVisualProperties.cs
r6377 r6647 20 20 #endregion 21 21 22 using System; 22 23 using System.ComponentModel; 23 24 using System.Drawing; … … 141 142 } 142 143 } 144 private string displayName; 145 public string DisplayName { 146 get { return displayName == null ? String.Empty : displayName; } 147 set { 148 if (displayName != value) { 149 if (value == null && displayName != String.Empty) { 150 displayName = String.Empty; 151 OnPropertyChanged("DisplayName"); 152 } else if (value != null) { 153 displayName = value; 154 OnPropertyChanged("DisplayName"); 155 } 156 } 157 } 158 } 143 159 144 160 #region Persistence Properties … … 187 203 get { return exactBins; } 188 204 set { exactBins = value; } 205 } 206 [Storable(Name = "DisplayName")] 207 private string StorableDisplayName { 208 get { return displayName; } 209 set { displayName = value; } 189 210 } 190 211 #endregion … … 203 224 this.bins = original.bins; 204 225 this.exactBins = original.exactBins; 226 this.displayName = original.displayName; 205 227 } 206 228 public DataRowVisualProperties() { … … 214 236 bins = 10; 215 237 exactBins = false; 238 displayName = String.Empty; 239 } 240 public DataRowVisualProperties(string displayName) 241 : this() { 242 this.displayName = displayName; 216 243 } 217 244
Note: See TracChangeset
for help on using the changeset viewer.