示例#1
0
 public static DialogResult Show(string txtMessage, string Dialog)
 {
     newMessageBox             = new frmMsgBox();
     newMessageBox.lblMsg.Text = txtMessage;
     newMessageBox.ShowDialog();
     return(_buttonResult);
 }
示例#2
0
 public static void Show(string txtMessage)
 {
     newMessageBox = new frmMsgBox();
     newMessageBox.btnCancel.Visible = false;
     newMessageBox.btnOK.Dock        = DockStyle.Bottom;
     newMessageBox.lblMsg.Text       = txtMessage;
     newMessageBox.ShowDialog();
 }