示例#1
0
 private static void ReturnParent(ProgressContext progressContext)
 {
     _current.Report(1);
     _current.ProgressReported -= OnProgressReported;
     _current = progressContext;
     State.Save();
 }
示例#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);
 }
示例#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;
 }