From 9be9ba4e159969fb5e32648c2c34e912ccc3ae6d Mon Sep 17 00:00:00 2001
From: duheng <2286773002@qq.com>
Date: 星期五, 28 三月 2025 14:22:42 +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