public void Stop(ProgressType type) { if (_progressModels.ContainsKey(type)) { _progressModels.Remove(type); } ActiveProgressChanged?.Invoke(this, EventArgs.Empty); }
public void StartIndeterminate(ProgressType type) { if (!_progressModels.ContainsKey(type)) { _progressModels[type] = new ProgressModel(type); } ActiveProgressChanged?.Invoke(this, EventArgs.Empty); }
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); }