Пример #1
0
 public static DialogResult Show(int closeTime, string textBtn1, string textBtn2, string message, params object[] args)
 {
     using (MessageBoxAutocloseWithButtons form = new MessageBoxAutocloseWithButtons(closeTime, textBtn1, textBtn2, string.Format(message, args)))
     {
         return(form.ShowDialog());
     }
 }
Пример #2
0
 public static DialogResult Show(int closeTime, string textBtn1, string textBtn2, string message)
 {
     using (MessageBoxAutocloseWithButtons form = new MessageBoxAutocloseWithButtons(closeTime, textBtn1, textBtn2, message))
     {
         return(form.ShowDialog());
     }
 }
Пример #3
0
 public static DialogResult Show(bool onTop, string textBtn1, string textBtn2, string message, params object[] args)
 {
     using (MessageBoxAutocloseWithButtons form = new MessageBoxAutocloseWithButtons(5, textBtn1, textBtn2, string.Format(message, args)))
     {
         form.TopMost = onTop;
         return(form.ShowDialog());
     }
 }
Пример #4
0
 public static DialogResult Show(bool onTop, string textBtn1, string textBtn2, string message)
 {
     using (MessageBoxAutocloseWithButtons form = new MessageBoxAutocloseWithButtons(5, textBtn1, textBtn2, message))
     {
         form.TopMost = onTop;
         return(form.ShowDialog());
     }
 }