示例#1
0
        internal static void MsgBox(string strMsg, string strTitle)
        {
            frmMsg frm = new frmMsg();

            frm.lblMsg.Text         = strMsg;
            frm.txtTitel.Text       = strTitle;
            frm.stpOk.Visibility    = Visibility.Visible;
            frm.stpYesNO.Visibility = Visibility.Hidden;
            frm.ShowDialog();
            //  frm.Dispose();
        }
示例#2
0
        internal static bool MsgBox(string strMsg, string strTitle, bool blDialog)
        {
            frmMsg frm = new frmMsg();

            frm.lblMsg.Text         = strMsg;
            frm.txtTitel.Text       = strTitle;
            frm.stpYesNO.Visibility = Visibility.Visible;
            frm.stpOk.Visibility    = Visibility.Hidden;
            frm.ShowDialog();


            return(blMsg);
        }