public void AddProgress(ILongOperationViewModel longOperationViewModel) { showProgressWindow(); _progressWindow.Focus(); var progressVM = getProgressWindowViewModel(); if (progressVM.Operations.Contains(longOperationViewModel)) { return; } progressVM.Operations.Add(longOperationViewModel); }
public void StopLongOperation(ILongOperationViewModel operation) { _longOperations.Remove(operation); HasOperationsChanged?.Invoke(this, EventArgs.Empty); }
public void RemoveProgress(ILongOperationViewModel longOperationViewModel) { var progressVM = getProgressWindowViewModel(); progressVM.Operations.Remove(longOperationViewModel); }