private void core_OnDeleteError(object sender, DeletionErrorEventArgs e) { var errorDialog = new DeletionError(); errorDialog.SetPath(e.Path); errorDialog.SetErrorMessage(e.ErrorMessage); var dialogResult = errorDialog.ShowDialog(); errorDialog.Dispose(); if (dialogResult == DialogResult.Abort) { this.core.AbortDeletion(); } else { // Hack: retry means -> ignore all errors if (dialogResult == DialogResult.Retry) { this.Data.IgnoreAllErrors = true; } this.core.ContinueDeleteProcess(); } }
private void core_OnDeleteError(object sender, DeletionErrorEventArgs e) { var errorDialog = new DeletionError(); errorDialog.SetPath(e.Path); errorDialog.SetErrorMessage(e.ErrorMessage); var dialogResult = errorDialog.ShowDialog(); errorDialog.Dispose(); if (dialogResult == DialogResult.Abort) { this.core.AbortDeletion(); } else { // Hack: retry means -> ignore all errors if (dialogResult == DialogResult.Retry) this.Data.IgnoreAllErrors = true; this.core.ContinueDeleteProcess(); } }