From 6f8d3598e6b3777f45d0a8c1551a845e70d37fb6 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期五, 20 十二月 2024 15:51:05 +0800 Subject: [PATCH] 导入修改 --- WinFrmUI/Yw.WinFrmUI.Core/00-core/MessageBoxHelper.cs | 22 +++++++++++++--------- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Core/00-core/MessageBoxHelper.cs b/WinFrmUI/Yw.WinFrmUI.Core/00-core/MessageBoxHelper.cs index a689e07..97da537 100644 --- a/WinFrmUI/Yw.WinFrmUI.Core/00-core/MessageBoxHelper.cs +++ b/WinFrmUI/Yw.WinFrmUI.Core/00-core/MessageBoxHelper.cs @@ -1,12 +1,12 @@ 锘縩amespace Yw.WinFrmUI { /// <summary> - /// + /// /// </summary> public class MessageBoxHelper { /// <summary> - /// + /// /// </summary> /// <param name="message">鏄剧ず淇℃伅</param> /// <param name="caption">鏍囬</param> @@ -96,12 +96,16 @@ return XtraMessageBox.Show(message, caption, buttons, MessageBoxIcon.Question, defaultButton); } - - - - - - - + /// <summary> + /// 寮圭獥鏄惁鐐瑰嚮纭畾 + /// </summary> + /// <param name="message"></param>鏄剧ず淇℃伅 + /// <param name="caption"></param>宸︿笂瑙掓樉绀轰俊鎭� + /// <param name="buttons"></param>闇�瑕佹樉绀烘寜閽� + /// <returns></returns> + public static bool IsClickOk(string message, string caption = "璇㈤棶", MessageBoxButtons buttons = MessageBoxButtons.OKCancel, MessageBoxDefaultButton defaultButton = MessageBoxDefaultButton.Button1) + { + return XtraMessageBox.Show(message, caption, buttons, MessageBoxIcon.Question) != DialogResult.OK; + } } } \ No newline at end of file -- Gitblit v1.9.3