| | |
| | | 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; |
| | |
| | | }; |
| | | 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(); |
| | |
| | | { |
| | | 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" }, |
| | |
| | | #endregion |
| | | |
| | | var fileList = Common.FileUtlis.Files.ReadFiles(); |
| | | |
| | | //foreach (var file in fileList) |
| | | //{ |
| | | // FunctionList.List.IniFunctionList(file,true); |
| | | //} |
| | | |
| | | Room.CurrentSpatial.InitRoomListFunctions(); |
| | | |