예제 #1
0
 private void btnClose_Click(object sender, EventArgs e)
 {
     if (MessageFrm.ShowDialog("Exit Program ?") == DialogResult.OK)
     {
         this.Close();
     }
 }
예제 #2
0
        public static DialogResult ShowDialog(string pMsg)
        {
            MessageFrm frm = new MessageFrm(pMsg);

            return(frm.ShowDialog());
        }