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()); } }
public static DialogResult Show(int closeTime, string textBtn1, string textBtn2, string message) { using (MessageBoxAutocloseWithButtons form = new MessageBoxAutocloseWithButtons(closeTime, textBtn1, textBtn2, message)) { return(form.ShowDialog()); } }
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()); } }
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()); } }