Changeset 6784 for branches/GP.Grammar.Editor/HeuristicLab.Analysis/3.3
- Timestamp:
- 09/16/11 12:00:36 (13 years ago)
- Location:
- branches/GP.Grammar.Editor/HeuristicLab.Analysis/3.3/DataVisualization
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Analysis/3.3/DataVisualization/DataRowVisualProperties.cs
r6647 r6784 252 252 if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName)); 253 253 } 254 255 [StorableHook(HookType.AfterDeserialization)] 256 private void AfterDeserialization() { 257 // BackwardsCompatibility3.3 258 #region Backwards compatible code, remove with 3.4 259 if (secondXAxis == default(bool) 260 && lineStyle == default(DataRowLineStyle) 261 && lineWidth == default(int) && bins == default(int) && exactBins == default(bool) 262 && displayName == default(string)) { 263 secondXAxis = false; 264 lineStyle = DataRowLineStyle.Solid; 265 lineWidth = 1; 266 bins = 10; 267 exactBins = false; 268 displayName = String.Empty; 269 } 270 #endregion 271 } 254 272 } 255 273 } -
branches/GP.Grammar.Editor/HeuristicLab.Analysis/3.3/DataVisualization/DataTableVisualProperties.cs
r6377 r6784 491 491 if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName)); 492 492 } 493 494 [StorableHook(HookType.AfterDeserialization)] 495 private void AfterDeserialization() { 496 // BackwardsCompatibility3.3 497 #region Backwards compatible code, remove with 3.4 498 // check if most of the properties that were added in Mai'11 were set to their default values, then we want to reset them to our default values 499 if (xAxisMinimumAuto == default(bool) && xAxisMaximumAuto == default(bool) 500 && yAxisMinimumAuto == default(bool) && yAxisMaximumAuto == default(bool) 501 && secondXAxisMinimumAuto == default(bool) && secondXAxisMaximumAuto == default(bool) 502 && secondYAxisMinimumAuto == default(bool) && secondYAxisMaximumAuto == default(bool) 503 && titleColor == default(Color) && axisTitleColor == default(Color) 504 && secondXAxisTitle == default(string) 505 && xAxisMinimumFixedValue == default(double) && xAxisMaximumFixedValue == default(double) 506 && yAxisMinimumFixedValue == default(double) && yAxisMaximumFixedValue == default(double) 507 && secondXAxisMinimumFixedValue == default(double) && secondXAxisMaximumFixedValue == default(double) 508 && secondYAxisMinimumFixedValue == default(double) && secondYAxisMaximumFixedValue == default(double)) { 509 titleColor = Color.Black; 510 axisTitleColor = Color.Black; 511 this.secondXAxisTitle = string.Empty; 512 this.xAxisMinimumAuto = true; 513 this.xAxisMinimumFixedValue = double.NaN; 514 this.xAxisMaximumAuto = true; 515 this.xAxisMaximumFixedValue = double.NaN; 516 this.secondXAxisMinimumAuto = true; 517 this.secondXAxisMinimumFixedValue = double.NaN; 518 this.secondXAxisMaximumAuto = true; 519 this.secondXAxisMaximumFixedValue = double.NaN; 520 this.yAxisMinimumAuto = true; 521 this.yAxisMinimumFixedValue = double.NaN; 522 this.yAxisMaximumAuto = true; 523 this.yAxisMaximumFixedValue = double.NaN; 524 this.secondYAxisMinimumAuto = true; 525 this.secondYAxisMinimumFixedValue = double.NaN; 526 this.secondYAxisMaximumAuto = true; 527 this.secondYAxisMaximumFixedValue = double.NaN; 528 #endregion 529 } 530 } 493 531 } 494 532 }
Note: See TracChangeset
for help on using the changeset viewer.