예제 #1
0
        public void AddProgress(ILongOperationViewModel longOperationViewModel)
        {
            showProgressWindow();
            _progressWindow.Focus();
            var progressVM = getProgressWindowViewModel();

            if (progressVM.Operations.Contains(longOperationViewModel))
            {
                return;
            }

            progressVM.Operations.Add(longOperationViewModel);
        }
예제 #2
0
 public void StopLongOperation(ILongOperationViewModel operation)
 {
     _longOperations.Remove(operation);
     HasOperationsChanged?.Invoke(this, EventArgs.Empty);
 }
예제 #3
0
        public void RemoveProgress(ILongOperationViewModel longOperationViewModel)
        {
            var progressVM = getProgressWindowViewModel();

            progressVM.Operations.Remove(longOperationViewModel);
        }