using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Stone.WinModule.Standard { public partial class frmMessageQuestion : Form { public frmMessageQuestion() { InitializeComponent(); } public DialogResult ShowQuestion(string msg) { this.lblMessage.Text = msg; return this.ShowDialog(); } private void btnOK_Click(object sender, EventArgs e) { frmPasswordVerify frm = new frmPasswordVerify(); frm.UserName = User.UserInfo.UserName; if (frm.ShowDialog() == DialogResult.OK) { this.DialogResult = DialogResult.OK; this.Close(); } } private void btnCancel_Click(object sender, EventArgs e) { this.Close(); } } }