Exemple #1
0
 private static void ReturnParent(ProgressContext progressContext)
 {
     _current.Report(1);
     _current.ProgressReported -= OnProgressReported;
     _current = progressContext;
     State.Save();
 }
Exemple #2
0
 public static ProgressContext Start(string key, double min, double max, string text = null)
 {
     _current = new ProgressContext(State, key, _current, min, max, ReturnParent);
     _current.ProgressReported += OnProgressReported;
     _current.Report(0, text);
     return(_current);
 }
Exemple #3
0
 public static ProgressContext Start(string key, double min, double max, string text = null)
 {
     _current = new ProgressContext(State, key, _current, min, max, ReturnParent);
     _current.ProgressReported += OnProgressReported;
     _current.Report(0, text);
     return _current;
 }