Changeset 16405 for branches/2931_OR-Tools_LP_MIP/HeuristicLab.Data/3.3
- Timestamp:
- 12/19/18 14:15:49 (6 years ago)
- Location:
- branches/2931_OR-Tools_LP_MIP/HeuristicLab.Data/3.3/Path Types
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2931_OR-Tools_LP_MIP/HeuristicLab.Data/3.3/Path Types/FileValue.cs
r15583 r16405 40 40 } 41 41 42 [Storable] 43 public bool SaveFile { get; set; } 44 42 45 [StorableConstructor] 43 46 protected FileValue(bool deserializing) : base(deserializing) { } … … 45 48 : base(original, cloner) { 46 49 fileDialogFilter = original.FileDialogFilter; 50 SaveFile = original.SaveFile; 47 51 } 48 52 public override IDeepCloneable Clone(Cloner cloner) { -
branches/2931_OR-Tools_LP_MIP/HeuristicLab.Data/3.3/Path Types/PathValue.cs
r15583 r16405 20 20 #endregion 21 21 22 using System; 22 23 using System.IO; 23 24 using HeuristicLab.Common; … … 29 30 [StorableClass] 30 31 public abstract class PathValue : Item { 32 33 public EventHandler PathChanged; 31 34 32 35 [Storable] … … 42 45 value = value.TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar); 43 46 stringValue.Value = value; 47 OnPathChanged(); 44 48 } 45 49 } … … 57 61 } 58 62 63 protected virtual void OnPathChanged() { 64 EventHandler handler = PathChanged; 65 if (handler != null) handler(this, EventArgs.Empty); 66 } 67 59 68 [StorableHook(HookType.AfterDeserialization)] 60 69 private void AfterDeserialization() {
Note: See TracChangeset
for help on using the changeset viewer.