From 9acd3887f1f8db40d59f991b1726a61aa7c7637c Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 12 五月 2021 15:13:56 +0800
Subject: [PATCH] Merge branch 'CJL' into wxr4

---
 HDL_ON/UI/UI0-Stan/Form/DeviceFunctionCardCommonForm.cs |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/HDL_ON/UI/UI0-Stan/Form/DeviceFunctionCardCommonForm.cs b/HDL_ON/UI/UI0-Stan/Form/DeviceFunctionCardCommonForm.cs
index a09506a..1ff1ef2 100644
--- a/HDL_ON/UI/UI0-Stan/Form/DeviceFunctionCardCommonForm.cs
+++ b/HDL_ON/UI/UI0-Stan/Form/DeviceFunctionCardCommonForm.cs
@@ -51,11 +51,14 @@
         /// </summary>
         public NormalFrameLayout FrameWhiteCentet2 = null;
 
-
+        /// <summary>
+        /// 鏄惁鏄剧ず鏀惰棌鎸夐挳
+        /// </summary>
+        public bool ShowColltionButton = true;
         #endregion
-
+
         #region 鈻� 鍒濆鍖朹____________________________
-
+
         /// <summary>
         /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓)
         /// </summary>
@@ -138,7 +141,7 @@
             btnRoomName.Width = btnRoomName.GetRealWidthByText();
             FrameWhiteCentet1.AddChidren(btnRoomName);
             //鎴愬憳娌℃湁鏀惰棌鍔熻兘
-            if (DB_ResidenceData.Instance.CurrentRegion.IsOthreShare == false)
+            //if (DB_ResidenceData.Instance.CurrentRegion.isOtherShare == false && ShowColltionButton)
             {
                 var btnCollection = new IconViewControl(40);
                 btnCollection.X = Application.GetRealWidth(273);
@@ -256,10 +259,10 @@
         private void AddTopSettingIcon(Button btnHigherDeviceName, Button btnHigherRoom)
         {
             //濡傛灉鏄垚鍛樻病鏈夊姛鑳�
-            if (DB_ResidenceData.Instance.CurrentRegion.IsOthreShare == true)
-            {
-                return;
-            }
+            //if (DB_ResidenceData.Instance.CurrentRegion.isOtherShare == true)
+            //{
+            //    return;
+            //}
             //璁剧疆鍥炬爣
             var btnSetting = new PicViewControl(28, 28);
             btnSetting.X = Application.GetRealWidth(337);

--
Gitblit v1.8.0