Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/19/18 14:15:49 (5 years ago)
Author:
ddorfmei
Message:

#2931:

  • moved views to separate plugin HeuristicLab.MathematicalOptimization.Views
  • added button in LinearProgrammingProblemView to select the problem definition type
  • added views for problem definitions
  • added ExportFile parameter to LinearProgrammingAlgorithm
  • extended FileValue and FileValueView by the option to save a file
  • code cleanup
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  
    4040    }
    4141
     42    [Storable]
     43    public bool SaveFile { get; set; }
     44
    4245    [StorableConstructor]
    4346    protected FileValue(bool deserializing) : base(deserializing) { }
     
    4548      : base(original, cloner) {
    4649      fileDialogFilter = original.FileDialogFilter;
     50      SaveFile = original.SaveFile;
    4751    }
    4852    public override IDeepCloneable Clone(Cloner cloner) {
  • branches/2931_OR-Tools_LP_MIP/HeuristicLab.Data/3.3/Path Types/PathValue.cs

    r15583 r16405  
    2020#endregion
    2121
     22using System;
    2223using System.IO;
    2324using HeuristicLab.Common;
     
    2930  [StorableClass]
    3031  public abstract class PathValue : Item {
     32
     33    public EventHandler PathChanged;
    3134
    3235    [Storable]
     
    4245        value = value.TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
    4346        stringValue.Value = value;
     47        OnPathChanged();
    4448      }
    4549    }
     
    5761    }
    5862
     63    protected virtual void OnPathChanged() {
     64      EventHandler handler = PathChanged;
     65      if (handler != null) handler(this, EventArgs.Empty);
     66    }
     67
    5968    [StorableHook(HookType.AfterDeserialization)]
    6069    private void AfterDeserialization() {
Note: See TracChangeset for help on using the changeset viewer.