From 2bf5ec775cb57d8015bee58c745a1e48081ff1b1 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期二, 15 十月 2019 11:06:05 +0800
Subject: [PATCH] 首次合并了全部的代码

---
 ZigbeeApp/Shared/Common/SceneUI.cs |   25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/ZigbeeApp/Shared/Common/SceneUI.cs b/ZigbeeApp/Shared/Common/SceneUI.cs
index 360a30d..3c02d15 100755
--- a/ZigbeeApp/Shared/Common/SceneUI.cs
+++ b/ZigbeeApp/Shared/Common/SceneUI.cs
@@ -61,6 +61,10 @@
         /// 鏍囪瘑褰撳墠鍦烘櫙鏄惁鏄垎浜殑鍦烘櫙
         /// </summary>
         public bool IsSharedScene = false;
+        /// <summary>
+        /// 鏄惁鏀惰棌
+        /// </summary>
+        public bool IsCollected = false;
 
         /// <summary>
         /// 寤舵椂鎵ц鏃堕棿--鏁翠釜鍦烘櫙寤舵椂(涓嶆槸寤舵椂鍦烘櫙閲岄潰鐨勬墽琛岀洰鏍�)
@@ -77,7 +81,11 @@
         #endregion
 
         #region 鈼� 閫氳繃鍦烘櫙id鑾峰彇鍦烘櫙璺緞_____________
-
+        /// <summary>
+        /// GetSceneFilePathBySceneId
+        /// </summary>
+        /// <param name="sceneId"></param>
+        /// <returns></returns>
         public static string GetSceneFilePathBySceneId(int sceneId)
         {
             return $"Scene_{sceneId}.json";
@@ -85,6 +93,21 @@
 
         #endregion
 
+        #region 鈼� 鏀惰棌____________________________
+
+        /// <summary>
+        /// collect
+        /// </summary>
+        /// <param name="collected"></param>
+        /// <param name="autoBackup"></param>
+        public void Collect(bool collected, bool autoBackup = true)
+        {
+            IsCollected = collected;
+            Save(autoBackup);
+        }
+
+        #endregion
+
         #region 鈼� 淇濆瓨____________________________
 
         /// <summary>

--
Gitblit v1.8.0