Exemple #1
0
 internal static DialogResult Alert(string title, string message, string messagesTitle, string exceptionDetail,
                                    AlertType alertType, AlertButtons alertButtons)
 {
     using (var alertForm = AlertFormFactory.CreateAlertForm(null, title, message, messagesTitle,
                                                             exceptionDetail, string.Empty, alertType, alertButtons))
     {
         alertForm.ShowDialog(HelperMethods.GetCurrentlyActiveForm());
         return(alertForm.DialogResult);
     }
 }
Exemple #2
0
 internal static DialogResult AlertRtf(Control parentControl, string title, List <string> messages,
                                       string messagesTitle, string exceptionDetail, string rtf, AlertType alertType, AlertButtons alertButtons)
 {
     using (var alertForm = AlertFormFactory.CreateAlertForm(parentControl, title, SingleMessage(messages), messagesTitle,
                                                             exceptionDetail, rtf, alertType, alertButtons))
     {
         alertForm.ShowDialog(HelperMethods.GetCurrentlyActiveForm(parentControl));
         return(alertForm.DialogResult);
     }
 }
 internal static DialogResult Alert(string title, string message,
                                    AlertType alertType,
                                    AlertButtons alertButtons)
 {
     using (var alertForm = AlertFormFactory.CreateAlertForm(title, message,
                                                             alertType, alertButtons))
     {
         alertForm.ShowDialog();
         return(alertForm.DialogResult);
     }
 }