From 6edb41a89f56634a0684dedf65b29f9277002c7f Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期四, 21 十一月 2019 17:58:15 +0800 Subject: [PATCH] 2019.11.21 --- ZigbeeApp/Shared/Common/House.cs | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Common/House.cs b/ZigbeeApp/Shared/Common/House.cs index d78cfa6..cc35aae 100644 --- a/ZigbeeApp/Shared/Common/House.cs +++ b/ZigbeeApp/Shared/Common/House.cs @@ -443,6 +443,21 @@ } return null; } + /// <summary> + /// InitFloor + /// </summary> + public void InitFloor() + { + if (Config.Instance.Home.FloorDics.Count > 0 && string.IsNullOrEmpty(CurrentFloorId)) + { + foreach (var floor in Config.Instance.Home.FloorDics) + { + CurrentFloorId = floor.Key; + Save(); + return; + } + } + } #endregion -- Gitblit v1.8.0