示例#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());
     }
 }