Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/04/17 13:55:43 (7 years ago)
Author:
pfleck
Message:

#1666:

  • Reverted r15371 for HeuristicLab.MainForm and HeuristicLab.MainForm.WindowsForms (all changes concerning the progress)
  • Changed the signature of OptimizeConstants in the simplifiers to "tree in - tree out" (thanks to bburlacu)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm/3.3/Progress.cs

    r15371 r15400  
    7272      canBeCanceled = false;
    7373    }
     74    public Progress(string status)
     75      : this() {
     76      this.status = status;
     77    }
     78    public Progress(string status, ProgressState state)
     79      : this() {
     80      this.status = status;
     81      this.progressState = state;
     82    }
    7483
    7584    public void Cancel() {
     
    8493
    8594    public void Start() {
    86       Start(string.Empty);
     95      ProgressValue = 0.0;
     96      ProgressState = ProgressState.Started;
    8797    }
     98
    8899    public void Start(string status) {
    89       Start(status, -1.0);
    90     }
    91     public void Start(string status, double progressValue) {
    92       ProgressState = ProgressState.Started;
    93       Status = status ?? string.Empty;
    94       ProgressValue = progressValue;
     100      Start();
     101      Status = status;
    95102    }
    96103
Note: See TracChangeset for help on using the changeset viewer.