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