public static DialogResult ShowMessage(string confirmationTitle, string confirmationMessage, out bool permanentlyDismissed)
 {
     DismissableConfirmationWindow thisWindow = new DismissableConfirmationWindow();
     thisWindow.Text = confirmationTitle;
     thisWindow.lbl_ConfirmationText.Text = confirmationMessage;
     DialogResult result = thisWindow.ShowDialog();
     permanentlyDismissed = thisWindow.chk_DontShowAgain.Checked;
     thisWindow.Dispose();
     return result;
 }
예제 #2
0
        public static DialogResult ShowMessage(string confirmationTitle, string confirmationMessage, out bool permanentlyDismissed)
        {
            DismissableConfirmationWindow thisWindow = new DismissableConfirmationWindow();

            thisWindow.Text = confirmationTitle;
            thisWindow.lbl_ConfirmationText.Text = confirmationMessage;
            DialogResult result = thisWindow.ShowDialog();

            permanentlyDismissed = thisWindow.chk_DontShowAgain.Checked;
            thisWindow.Dispose();
            return(result);
        }