Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/19/17 10:49:02 (7 years ago)
Author:
pfleck
Message:

#1666: Merged into trunk

Location:
trunk/sources/HeuristicLab.MainForm/3.3
Files:
2 edited

Legend:

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

    r14185 r15371  
    6464    /// </summary>
    6565    void Start();
    66 
    6766    void Start(string status);
     67    void Start(string status, double progressValue);
    6868
    6969    /// <summary>
  • trunk/sources/HeuristicLab.MainForm/3.3/Progress.cs

    r14185 r15371  
    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     }
    8374
    8475    public void Cancel() {
     
    9384
    9485    public void Start() {
    95       ProgressValue = 0.0;
     86      Start(string.Empty);
     87    }
     88    public void Start(string status) {
     89      Start(status, -1.0);
     90    }
     91    public void Start(string status, double progressValue) {
    9692      ProgressState = ProgressState.Started;
    97     }
    98 
    99     public void Start(string status) {
    100       Start();
    101       Status = status;
     93      Status = status ?? string.Empty;
     94      ProgressValue = progressValue;
    10295    }
    10396
Note: See TracChangeset for help on using the changeset viewer.