public static bool Confirm() { using (var dlg = new ConfirmRemovePageDialog()) { return DialogResult.OK == dlg.ShowDialog(); } }
private void _deletePageButton_Click_1(object sender, EventArgs e) { if (ConfirmRemovePageDialog.Confirm()) { _deletePageCommand.Execute(); } }