/// <summary> /// Prepare to edit workflow type /// </summary> private void OnEditWorkflowType() { try { if (this.SelectedWorkflowType == null) return; EditWorkflowTypeVM = new EditWorkflowTypeViewModel(Common.WorkflowTypeOperations.Edit, this.SelectedWorkflowType, RefreshUploadCommandExecute); IsEditing = true; this.UploadWorkflowCommand.RaiseCanExecuteChanged(); } catch (Exception e) { throw new UserFacingException(e.Message); } }
/// <summary> /// Prepare to Add workflow type /// </summary> private void OnAddWorkflowType() { try { EditWorkflowTypeVM = new EditWorkflowTypeViewModel(Common.WorkflowTypeOperations.Add, null, RefreshUploadCommandExecute); IsEditing = true; this.UploadWorkflowCommand.RaiseCanExecuteChanged(); } catch (Exception e) { throw new UserFacingException(e.Message); } }