Esempio n. 1
0
 public static DialogResult Show(string message)
 {
     using (var form = new DarkDialogMessageBox()
     {
         Message = message
     })
         return(form.ShowDialog());
 }
Esempio n. 2
0
 public static DialogResult Show(IWin32Window owner, string message, string caption, MessageBoxButtons buttons, MessageBoxIcon icon)
 {
     using (var form = new DarkDialogMessageBox()
     {
         Message = message, Text = caption, DialogButtons = buttons, Icon = icon
     })
         return(form.ShowDialog(owner));
 }
Esempio n. 3
0
 public static DialogResult Show(string message, string caption, MessageBoxButtons buttons)
 {
     using (var form = new DarkDialogMessageBox()
     {
         Message = message, Text = caption, DialogButtons = buttons
     })
         return(form.ShowDialog());
 }
Esempio n. 4
0
 public static DialogResult Show(string message, string caption, MessageBoxIcon icon)
 {
     using (var form = new DarkDialogMessageBox()
     {
         Message = message, Text = caption, Icon = icon
     })
         return(form.ShowDialog());
 }
Esempio n. 5
0
 public static DialogResult Show(IWin32Window owner, string message, string caption)
 {
     using (var form = new DarkDialogMessageBox()
     {
         Message = message, Text = caption
     })
         return(form.ShowDialog(owner));
 }
Esempio n. 6
0
 public static DialogResult Show(string message, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton)
 {
     using (var form = new DarkDialogMessageBox()
     {
         Message = message, Text = caption, DialogButtons = buttons, Icon = icon, DefaultButton = defaultButton
     })
         return(form.ShowDialog());
 }
Esempio n. 7
0
 public static DialogResult Show(string message, string caption, MessageBoxButtons buttons, MessageBoxIcon icon)
 {
     using (var form = new DarkDialogMessageBox()
     {
         Message = message, Text = caption, DialogButtons = buttons, Icon = icon, StartPosition = FormStartPosition.CenterScreen
     })
         return(form.ShowDialog());
 }