Beispiel #1
0
 /// <summary>
 /// 判断是否正确响应
 /// </summary>
 /// <param name="text">提示内容</param>
 /// <returns>如果点击了是返回true</returns>
 public static bool Confirm(string text)
 {
     // DialogResult result= MessageBox.Show(text, "窗体消息提示", MessageBoxButtons.YesNo);
     CustomConfirmBox form = new CustomConfirmBox(text);
     DialogResult result = form.ShowDialog();
     return DialogResult.Yes == result;
 }
Beispiel #2
0
        /// <summary>
        /// 判断是否正确响应
        /// </summary>
        /// <param name="text">提示内容</param>
        /// <returns>如果点击了是返回true</returns>
        public static bool Confirm(string text)
        {
            // DialogResult result= MessageBox.Show(text, "窗体消息提示", MessageBoxButtons.YesNo);
            CustomConfirmBox form   = new CustomConfirmBox(text);
            DialogResult     result = form.ShowDialog();

            return(DialogResult.Yes == result);
        }