Ejemplo n.º 1
0
 public static DialogResult Show(string text)
 {
     MsgBox = new KxMsgBox();
     MsgBox.pictureBox_TopIcon.Visible = false;
     MsgBox.label_TopCaption.Visible   = false;
     MsgBox.label_CenterMessage.Text   = text;
     MsgBox.label_CenterMessage.Focus();
     MsgBox.TopMost = true;
     MsgBox.ShowDialog();
     return(Result);
 }
Ejemplo n.º 2
0
 public static DialogResult Show(string caption, string text, KxMsgBoxIcon Icon, KxMsgBoxButton Button)
 {
     MsgBox = new KxMsgBox();
     MsgBox.SetIcon(Icon);
     MsgBox.SetButton(Button);
     MsgBox.pictureBox_TopIcon.Visible = true;
     MsgBox.label_TopCaption.Visible   = true;
     MsgBox.label_TopCaption.Text      = caption;
     MsgBox.label_CenterMessage.Text   = text;
     MsgBox.label_CenterMessage.Focus();
     MsgBox.TopMost = true;
     MsgBox.ShowDialog();
     return(Result);
 }