From bce17e5a91e596d29209056e2e4ac3a6f88c2219 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期五, 09 七月 2021 10:03:53 +0800 Subject: [PATCH] 海林传感器 --- HDL_ON/UI/UI1-Login/LoginPage.cs | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/LoginPage.cs b/HDL_ON/UI/UI1-Login/LoginPage.cs index 8d3d3da..58ce5a1 100644 --- a/HDL_ON/UI/UI1-Login/LoginPage.cs +++ b/HDL_ON/UI/UI1-Login/LoginPage.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Text.RegularExpressions; using System.Threading; +using HDL_ON.Common; using HDL_ON.DAL.Server; using HDL_ON.Entity; using HDL_ON.UI.CSS; @@ -522,7 +523,12 @@ }; bodyView.AddChidren(btnDomeLogin); btnDomeLogin.MouseUpEventHandler = (sender, e) => { + MainPage.NoLoginMode = true; +#if DEBUG + FileUtlis.Files.DeleteAllFile(); +#endif + //妤煎眰鎴块棿鍒楄〃 var floor1 = new SpatialInfo("FLOOR") { roomName = "F1", parentId = DB_ResidenceData.Instance.CurrentRegion.id }; floor1.SaveRoomFile(); @@ -664,9 +670,9 @@ { sid = "light4", deviceId = "light4", - name = Language.CurrentLanguage == "Chinese" ? "澶х伅" : "light 1" , + name = Language.CurrentLanguage == "Chinese" ? "澶х伅" : "light 1", spk = SPK.LightSwitch, - roomIds = new List<string>() { "1405771024583090178"}, + roomIds = new List<string>() { "1405771024583090178" }, attributes = new List<FunctionAttributes>() { new FunctionAttributes() { key = "on_off",value =new List<string>(){ "on","off" }, curValue="on",state = "on" }, @@ -1056,11 +1062,6 @@ #endregion var fileList = Common.FileUtlis.Files.ReadFiles(); - - //foreach (var file in fileList) - //{ - // FunctionList.List.IniFunctionList(file,true); - //} Room.CurrentSpatial.InitRoomListFunctions(); -- Gitblit v1.8.0