From 528c105b3aea0e6e00477365f16f57c1e3d7eb1c Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期四, 24 十月 2019 15:31:28 +0800 Subject: [PATCH] 2019-10-24-3 --- 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 old mode 100644 new mode 100755 index 360a30d..3c02d15 --- 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