private DialogResult ShowDialog(IWin32Window owner, string title) { using (new WaitCursor()) { DialogResult result; using (_wizardForm = new WeblogConfigurationWizard(this)) { using (new BlogClientUIContextScope(_wizardForm)) { _owner = _wizardForm; _wizardForm.Text = title; // Show in taskbar if it's a top-level window. This is true during welcome if (owner == null) { _wizardForm.ShowInTaskbar = true; _wizardForm.StartPosition = FormStartPosition.CenterScreen; } result = _wizardForm.ShowDialog(owner); _owner = null; } } _wizardForm = null; if (_detectionOperation != null && !_detectionOperation.IsDone) { _detectionOperation.Cancel(); } return(result); } }
private DialogResult ShowDialog(IWin32Window owner, string title) { using (new WaitCursor()) { DialogResult result; using (_wizardForm = new WeblogConfigurationWizard(this)) { using (new BlogClientUIContextScope(_wizardForm)) { _owner = _wizardForm; _wizardForm.Text = title; // Show in taskbar if it's a top-level window. This is true during welcome if (owner == null) { _wizardForm.ShowInTaskbar = true; _wizardForm.StartPosition = FormStartPosition.CenterScreen; } result = _wizardForm.ShowDialog(owner); _owner = null; } } _wizardForm = null; if (_detectionOperation != null && !_detectionOperation.IsDone) _detectionOperation.Cancel(); return result; } }