public void RenameStudy() { _component = new RenameStudyComponent(this.Context.SelectedStudy); if (ApplicationComponentExitCode.Accepted == ApplicationComponent.LaunchAsDialog(this.Context.DesktopWindow, _component, "Rename Study")) { BackgroundTask task = null; try { task = new BackgroundTask(Rename, false, this.Context.SelectedStudy.StudyInstanceUid); ProgressDialog.Show(task, this.Context.DesktopWindow, true); } catch (Exception e) { Platform.Log(LogLevel.Error, e); string message = String.Format("Must Delete Manually", _tempPath); this.Context.DesktopWindow.ShowMessageBox(message, MessageBoxActions.Ok); } finally { _tempPath = null; if (task != null) { task.Dispose(); } } } }
public ValidateAnonymizationRule(RenameStudyComponent parent, string property, ValidationFailureReason validationReason) { _parent = parent; _property = property; _validationReason = validationReason; }