Пример #1
0
 /// <summary>
 /// Anzeige Frageform mit mehrzeiligem Text (message), Buttons: Ja  Nein  Abbrechen, Formtitel= Caption
 /// </summary>
 /// <param name="message">mehrzeiliger Text</param>
 /// <param name="caption">Titel des Forms</param>
 /// <returns></returns>
 public static DialogResult ShowYesNo(string message, string caption)
 {
     using (var mb = new FrmYesNoMessageBox(message, caption, false))
     {
         return(mb.ShowDialog());
     }
 }
Пример #2
0
 public static DialogResult ShowYesNo(string message, string caption, bool showDisplayAgainFlag,
                                      out bool displayAgainValue)
 {
     using (var mb = new FrmYesNoMessageBox(message, caption, showDisplayAgainFlag))
     {
         var dr = mb.ShowDialog();
         displayAgainValue = mb.DisplayAgainValue;
         return(dr);
     }
 }