/// <see cref="WizardFramework.IWizard.PerformFinish" /> public override void OnFinish(CancelEventArgs e) { try { EnablePageAndButtons(false); if (PerformDryRun) { PerformMerge(); if (_mergeActions != null && _resolvedMergeConflicts != null) { MergeResultsDialog dialog = new MergeResultsDialog(); dialog.MergeActions = MergeActions; dialog.ResolvedMergeConflicts = ResolvedMergeConflicts; dialog.ShowDialog(Context); } e.Cancel = true; } else { PerformMerge(); this.DialogResult = DialogResult.OK; } } catch (Exception ex) { CurrentPage.Message = new WizardMessage(ex.InnerException.Message, WizardMessage.MessageType.Error); e.Cancel = false; } finally { EnablePageAndButtons(true); } }