Пример #1
0
 public void Stop(ProgressType type)
 {
     if (_progressModels.ContainsKey(type))
     {
         _progressModels.Remove(type);
     }
     ActiveProgressChanged?.Invoke(this, EventArgs.Empty);
 }
Пример #2
0
 public void StartIndeterminate(ProgressType type)
 {
     if (!_progressModels.ContainsKey(type))
     {
         _progressModels[type] = new ProgressModel(type);
     }
     ActiveProgressChanged?.Invoke(this, EventArgs.Empty);
 }
Пример #3
0
 public void Start(ProgressType type, int maxValue)
 {
     if (!_progressModels.ContainsKey(type))
     {
         _progressModels[type] = new ProgressModel(type, maxValue);
     }
     else
     {
         _progressModels[type].OverwriteMaxValue(maxValue);
     }
     ActiveProgressChanged?.Invoke(this, EventArgs.Empty);
 }