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