From dee21bf452a8979d0515d13e534fbb69ed9715dd Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期二, 01 九月 2020 15:33:13 +0800
Subject: [PATCH] 上传一个版本

---
 ZigbeeApp/Shared/Phone/CommonForm/CommonFormBase.cs |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/CommonForm/CommonFormBase.cs b/ZigbeeApp/Shared/Phone/CommonForm/CommonFormBase.cs
index e6cc62c..3089a89 100755
--- a/ZigbeeApp/Shared/Phone/CommonForm/CommonFormBase.cs
+++ b/ZigbeeApp/Shared/Phone/CommonForm/CommonFormBase.cs
@@ -235,7 +235,7 @@
             {
                 return;
             }
-            Application.RunOnMainThread(() =>
+            HdlThreadLogic.Current.RunMain(() =>
             {
                 var alert = new ShowMsgControl(msgType, msg, buttonText);
                 if (action != null)
@@ -288,6 +288,16 @@
             return HdlControlLogic.Current.GetPictrueRealSize(i_size);
         }
 
+        /// <summary>
+        /// 鍒ゆ柇鎸囧畾鐨勭晫闈㈡槸鍚︽墦寮�
+        /// </summary>
+        /// <param name="formId"></param>
+        /// <returns></returns>
+        public bool IsFormOpen(string formId)
+        {
+            return UserCenterResourse.DicActionForm.ContainsKey(formId);
+        }
+
         #endregion
 
         #region 鈻� 妫�娴嬮敊璇痏__________________________
@@ -296,7 +306,7 @@
         /// 妫�娴嬬晫闈㈢殑閿欒
         /// </summary>
         /// <returns></returns>
-        public bool CheckForm()
+        public virtual bool CheckForm()
         {
             //妫�娴嬫帶浠�
             return this.CheckControl(this);

--
Gitblit v1.8.0