Ejemplo n.º 1
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));
 }
Ejemplo n.º 2
0
 public static DialogResult Show(string message)
 {
     using (var form = new DarkDialogMessageBox()
     {
         Message = message
     })
         return(form.ShowDialog());
 }
Ejemplo 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());
 }
Ejemplo 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());
 }
Ejemplo 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));
 }
Ejemplo 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());
 }