| | |
| | | #if DEBUG |
| | | btnIcon_bg.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | MainPage.NoLoginMode = true; |
| | | //楼层房间列表 |
| | | var floor1 = new SpatialInfo("FLOOR") { roomName = "F1", parentId = DB_ResidenceData.Instance.CurrentRegion.id }; |
| | | floor1.SaveRoomFile(); |
| | | //处理房间列表 |
| | | var room1 = new Room() { |
| | | roomId = "r1", |
| | | roomName = "客厅", |
| | | parentId = "f1" |
| | | }; |
| | | room1.SaveRoomFile(); |
| | | //功能 |
| | | var light1 = new Function() |
| | | { |
| | | sid = "light1", |
| | | deviceId = "light1", |
| | | name = "RGB1", |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes() { key = "on_off",value =new List<string>(){ "on","off" }, curValue="on",state = "on" }, |
| | | new FunctionAttributes() { key = "brightness",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | new FunctionAttributes() { key = "rgb",value =new List<string>(){ "0","100" }, curValue="0,0,0",state = "0,0,0" }, |
| | | }, |
| | | }; |
| | | light1.SaveFunctionFile(); |
| | | //场景 |
| | | return; |
| | | |
| | | }; |
| | | |
| | | bool b = false; |
| | |
| | | } |
| | | else |
| | | { |
| | | etAccount.Text = "464027401@qq.com";// |
| | | //etAccount.Text = "15217626103";// |
| | | //etAccount.Text = "13682244600";//波哥 |
| | | //etAccount.Text = "BB01010101@evoyo.com";//可视对讲 |
| | | //etAccount.Text = "13168123446"; |
| | | //etAccount.Text = "13676202754";//巴林服务器 |
| | | //etAccount.Text = "13602944661";//kx |
| | | etAccount.Text = "551775569@qq.com";//wcf |
| | | //etAccount.Text = "551775569@qq.com";//wcf |
| | | //etAccount.Text = "18666455392";//13375012446//13602944661//tzy 18778381374 |
| | | //etAccount.Text = "15971583093";// gs//tzy 274116637@qq.com//Sumant.Bhatia@havells.com 国外服务器测试 |
| | | } |
| | |
| | | }; |
| | | bodyView.AddChidren(btnLogin); |
| | | |
| | | LoadEventList(); |
| | | Button btnDomeLogin = new Button() |
| | | { |
| | | Y = btnLogin.Bottom + Application.GetRealHeight(10), |
| | | Height = Application.GetRealWidth(44), |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | IsBold = true, |
| | | TextColor = CSS_Color.MainColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | Text = "体验模式" |
| | | }; |
| | | bodyView.AddChidren(btnDomeLogin); |
| | | btnDomeLogin.MouseUpEventHandler = (sender, e) => { |
| | | MainPage.NoLoginMode = true; |
| | | //楼层房间列表 |
| | | var floor1 = new SpatialInfo("FLOOR") { roomName = "F1", parentId = DB_ResidenceData.Instance.CurrentRegion.id }; |
| | | floor1.SaveRoomFile(); |
| | | #region 房间一 -- 客厅 |
| | | //处理房间列表 |
| | | |
| | | var room1 = new Room() |
| | | { |
| | | roomId = "1405771366041378818", |
| | | roomName = "洗手间", |
| | | roomImage = "Classification/Room/Roombg.png", |
| | | uid = "47c98953-6fd4-4379-88b9-4b748963504f", |
| | | roomType = "ROOM", |
| | | parentId = "2348be0f-eec2-43c4-b74d-9b6037a5ba55", |
| | | homeId = "1396717478877241345", |
| | | createTime = "1623996986290", |
| | | modifyTime = "1623996986290", |
| | | floorRoomName = "1F-洗手间" |
| | | }; |
| | | room1.SaveRoomFile(); |
| | | var room2 = new Room() |
| | | { |
| | | roomId = "1405771310345216001", |
| | | roomName = "主卧", |
| | | roomImage = "Classification/Room/Roombg.png", |
| | | uid = "168d27a1-9e53-42c0-95c9-f5cbf41ea167", |
| | | roomType = "ROOM", |
| | | parentId = "2348be0f-eec2-43c4-b74d-9b6037a5ba55", |
| | | homeId = "1396717478877241345", |
| | | createTime = "1623996973011", |
| | | modifyTime = "1623996973011", |
| | | floorRoomName = "1F-主卧" |
| | | }; |
| | | room2.SaveRoomFile(); |
| | | var room3 = new Room() |
| | | { |
| | | roomId = "1405771193802285057", |
| | | roomName = "餐厅", |
| | | roomImage = "Classification/Room/Roombg.png", |
| | | uid = "ed7fc784-aace-44b8-97a3-bc3e727e598b", |
| | | roomType = "ROOM", |
| | | parentId = "2348be0f-eec2-43c4-b74d-9b6037a5ba55", |
| | | homeId = "1396717478877241345", |
| | | createTime = "1623996945225", |
| | | modifyTime = "1623996945225", |
| | | floorRoomName = "1F-餐厅" |
| | | }; |
| | | room3.SaveRoomFile(); |
| | | var room4 = new Room() |
| | | { |
| | | roomId = "1405771024583090178", |
| | | roomName = "客厅", |
| | | roomImage = "Classification/Room/Roombg.png", |
| | | uid = "9191a3a2-026f-4667-a0b1-e3af699e7295", |
| | | roomType = "ROOM", |
| | | parentId = "2348be0f-eec2-43c4-b74d-9b6037a5ba55", |
| | | homeId = "1396717478877241345", |
| | | createTime = "1623996904880", |
| | | modifyTime = "1623996904880", |
| | | floorRoomName = "1F-客厅" |
| | | }; |
| | | room4.SaveRoomFile(); |
| | | var floor = new SpatialInfo() |
| | | { |
| | | roomId = "1405770943695937537", |
| | | roomName = "1F", |
| | | roomImage = "Classification/Room/Roombg.png", |
| | | uid = "2348be0f-eec2-43c4-b74d-9b6037a5ba55", |
| | | roomType = "FLOOR", |
| | | parentId = "1396717478877241345", |
| | | homeId = "1396717478877241345", |
| | | createTime = "1623996885595", |
| | | modifyTime = "1623996885595" |
| | | }; |
| | | floor.SaveRoomFile(); |
| | | |
| | | SpatialInfo.CurrentSpatial.FloorList.Add(floor); |
| | | SpatialInfo.CurrentSpatial.RoomList.Add(room1); |
| | | SpatialInfo.CurrentSpatial.RoomList.Add(room2); |
| | | SpatialInfo.CurrentSpatial.RoomList.Add(room3); |
| | | SpatialInfo.CurrentSpatial.RoomList.Add(room4); |
| | | |
| | | |
| | | #region 客厅 |
| | | #region 功能 |
| | | var lightRgb1 = new Function() |
| | | { |
| | | sid = "light1", |
| | | deviceId = "light1", |
| | | name = "RGB1", |
| | | spk = SPK.LightRGB, |
| | | roomIds = new List<string>() { "1405771024583090178"}, |
| | | collect = true, |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes() { key = "on_off",value =new List<string>(){ "on","off" }, curValue="on",state = "on" }, |
| | | new FunctionAttributes() { key = "brightness",value =new List<string>(){ "0","100" }, curValue="100",state = "100" }, |
| | | new FunctionAttributes() { key = "rgb",value =new List<string>(){ "0","100" }, curValue="0,0,0",state = "0,0,0" }, |
| | | new FunctionAttributes() { key = "fade_time",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | new FunctionAttributes() { key = "delay",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | }, |
| | | }; |
| | | lightRgb1.SaveFunctionFile(); |
| | | var lightRgb2 = new Function() |
| | | { |
| | | sid = "light2", |
| | | deviceId = "light2", |
| | | name = "RGB2", |
| | | spk = SPK.LightRGB, |
| | | roomIds = new List<string>() { "1405771024583090178"}, |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes() { key = "on_off",value =new List<string>(){ "on","off" }, curValue="on",state = "on" }, |
| | | new FunctionAttributes() { key = "brightness",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | new FunctionAttributes() { key = "rgb",value =new List<string>(){ "0","100" }, curValue="0,0,0",state = "0,0,0" }, |
| | | new FunctionAttributes() { key = "fade_time",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | new FunctionAttributes() { key = "delay",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | }, |
| | | }; |
| | | lightRgb2.SaveFunctionFile(); |
| | | var lightCct = new Function() |
| | | { |
| | | sid = "light3", |
| | | deviceId = "light3", |
| | | name = "CCT1", |
| | | spk = SPK.LightCCT, |
| | | roomIds = new List<string>() { "1405771024583090178"}, |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes() { key = "on_off",value =new List<string>(){ "on","off" }, curValue="on",state = "on" }, |
| | | new FunctionAttributes() { key = "brightness",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | new FunctionAttributes() { key = "cct",value =new List<string>(){ "0","65535" }, curValue="0",state = "0" }, |
| | | new FunctionAttributes() { key = "fade_time",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | new FunctionAttributes() { key = "delay",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | }, |
| | | }; |
| | | lightCct.SaveFunctionFile(); |
| | | var lightSwitch1 = new Function() |
| | | { |
| | | sid = "light4", |
| | | deviceId = "light4", |
| | | name = "开关灯1", |
| | | spk = SPK.LightSwitch, |
| | | roomIds = new List<string>() { "1405771024583090178"}, |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes() { key = "on_off",value =new List<string>(){ "on","off" }, curValue="on",state = "on" }, |
| | | new FunctionAttributes() { key = "brightness",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | new FunctionAttributes() { key = "fade_time",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | }, |
| | | }; |
| | | lightSwitch1.SaveFunctionFile(); |
| | | var lightSwitch2 = new Function() |
| | | { |
| | | sid = "light5", |
| | | deviceId = "light5", |
| | | name = "开关灯2", |
| | | spk = SPK.LightSwitch, |
| | | roomIds = new List<string>() { "1405771024583090178"}, |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes() { key = "on_off",value =new List<string>(){ "on","off" }, curValue="on",state = "on" }, |
| | | new FunctionAttributes() { key = "brightness",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | new FunctionAttributes() { key = "fade_time",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | }, |
| | | }; |
| | | lightSwitch2.SaveFunctionFile(); |
| | | var curtain1 = new Function() |
| | | { |
| | | sid = "curtain1", |
| | | deviceId = "curtain1", |
| | | name = "开合帘", |
| | | spk = SPK.CurtainTrietex, |
| | | roomIds = new List<string>() { "1405771024583090178"}, |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes() { key = "on_off",value =new List<string>(){ "on","off" }, curValue="on",state = "on" }, |
| | | new FunctionAttributes() { key = "percent",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | }, |
| | | }; |
| | | curtain1.SaveFunctionFile(); |
| | | var curtain2 = new Function() |
| | | { |
| | | sid = "curtain2", |
| | | deviceId = "curtain2", |
| | | name = "卷帘", |
| | | spk = SPK.CurtainRoller, |
| | | roomIds = new List<string>() { "1405771024583090178"}, |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes() { key = "on_off",value =new List<string>(){ "on","off" }, curValue="on",state = "on" }, |
| | | new FunctionAttributes() { key = "percent",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | }, |
| | | }; |
| | | curtain2.SaveFunctionFile(); |
| | | var fh = new Function() |
| | | { |
| | | sid = "floorheat1", |
| | | deviceId = "floorheat1", |
| | | name = "地暖", |
| | | spk = SPK.FloorHeatStandard, |
| | | roomIds = new List<string>() { "1405771024583090178"}, |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes() { key = "on_off",value =new List<string>(){ "on","off" }, curValue="on",state = "on" }, |
| | | new FunctionAttributes() { key = "mode",value =new List<string>(){ "day", "night", "away", "normal", "timer" }, curValue="day",state = "day" }, |
| | | new FunctionAttributes() { key = "set_temp",value =new List<string>(){ "" }, curValue="26",state = "26" }, |
| | | new FunctionAttributes() { key = "room_temp",value =new List<string>(){ "" }, curValue="26",state = "26" }, |
| | | }, |
| | | }; |
| | | fh.SaveFunctionFile(); |
| | | #endregion |
| | | #region 场景 |
| | | var scene1 = new Scene() |
| | | { |
| | | sid = "scene1", |
| | | userSceneId = "scene1", |
| | | name = "明亮模式", |
| | | roomIds = new List<string>() { "1405771024583090178" }, |
| | | gatewayId = "1234567890123456", |
| | | collect = true, |
| | | functions = new List<SceneFunction>() |
| | | { |
| | | new SceneFunction() |
| | | { |
| | | sid = lightRgb1.sid, |
| | | status = new List<SceneFunctionStatus>() |
| | | { |
| | | new SceneFunctionStatus() |
| | | { |
| | | key = "on_off", |
| | | value = "on", |
| | | } |
| | | } |
| | | }, |
| | | new SceneFunction() |
| | | { |
| | | sid = lightRgb2.sid, |
| | | status = new List<SceneFunctionStatus>() |
| | | { |
| | | new SceneFunctionStatus() |
| | | { |
| | | key = "on_off", |
| | | value = "on", |
| | | } |
| | | } |
| | | }, |
| | | new SceneFunction() |
| | | { |
| | | sid = lightCct.sid, |
| | | status = new List<SceneFunctionStatus>() |
| | | { |
| | | new SceneFunctionStatus() |
| | | { |
| | | key = "on_off", |
| | | value = "on", |
| | | } |
| | | } |
| | | }, |
| | | new SceneFunction() |
| | | { |
| | | sid = lightSwitch1.sid, |
| | | status = new List<SceneFunctionStatus>() |
| | | { |
| | | new SceneFunctionStatus() |
| | | { |
| | | key = "on_off", |
| | | value = "on", |
| | | } |
| | | } |
| | | }, |
| | | new SceneFunction() |
| | | { |
| | | sid = lightSwitch2.sid, |
| | | status = new List<SceneFunctionStatus>() |
| | | { |
| | | new SceneFunctionStatus() |
| | | { |
| | | key = "on_off", |
| | | value = "on", |
| | | } |
| | | } |
| | | }, |
| | | |
| | | |
| | | }, |
| | | }; |
| | | scene1.SaveSceneFile(); |
| | | var scene2 = new Scene() |
| | | { |
| | | sid = "scene2", |
| | | userSceneId = "scene2", |
| | | name = "浪漫模式", |
| | | roomIds = new List<string>() { "1405771024583090178" }, |
| | | gatewayId = "1234567890123456", |
| | | collect = false, |
| | | functions = new List<SceneFunction>() |
| | | { |
| | | new SceneFunction() |
| | | { |
| | | sid = lightRgb1.sid, |
| | | status = new List<SceneFunctionStatus>() |
| | | { |
| | | new SceneFunctionStatus() |
| | | { |
| | | key = "on_off", |
| | | value = "on", |
| | | } |
| | | } |
| | | }, |
| | | new SceneFunction() |
| | | { |
| | | sid = lightRgb2.sid, |
| | | status = new List<SceneFunctionStatus>() |
| | | { |
| | | new SceneFunctionStatus() |
| | | { |
| | | key = "on_off", |
| | | value = "on", |
| | | } |
| | | } |
| | | }, |
| | | new SceneFunction() |
| | | { |
| | | sid = lightCct.sid, |
| | | status = new List<SceneFunctionStatus>() |
| | | { |
| | | new SceneFunctionStatus() |
| | | { |
| | | key = "on_off", |
| | | value = "on", |
| | | } |
| | | } |
| | | }, |
| | | new SceneFunction() |
| | | { |
| | | sid = lightSwitch1.sid, |
| | | status = new List<SceneFunctionStatus>() |
| | | { |
| | | new SceneFunctionStatus() |
| | | { |
| | | key = "on_off", |
| | | value = "off", |
| | | } |
| | | } |
| | | }, |
| | | new SceneFunction() |
| | | { |
| | | sid = lightSwitch2.sid, |
| | | status = new List<SceneFunctionStatus>() |
| | | { |
| | | new SceneFunctionStatus() |
| | | { |
| | | key = "on_off", |
| | | value = "off", |
| | | } |
| | | } |
| | | }, |
| | | |
| | | |
| | | }, |
| | | |
| | | }; |
| | | scene2.SaveSceneFile(); |
| | | #endregion |
| | | #endregion |
| | | #region 餐厅 |
| | | var lightSwitch3 = new Function() |
| | | { |
| | | sid = "light6", |
| | | deviceId = "light6", |
| | | name = "餐厅灯1", |
| | | spk = SPK.LightSwitch, |
| | | roomIds = new List<string>() { room3.roomId }, |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes() { key = "on_off",value =new List<string>(){ "on","off" }, curValue="on",state = "on" }, |
| | | new FunctionAttributes() { key = "brightness",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | new FunctionAttributes() { key = "fade_time",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | }, |
| | | }; |
| | | lightSwitch3.SaveFunctionFile(); |
| | | var lightSwitch4 = new Function() |
| | | { |
| | | sid = "light7", |
| | | deviceId = "light7", |
| | | name = "餐厅灯2", |
| | | spk = SPK.LightSwitch, |
| | | roomIds = new List<string>() { room3.roomId }, |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes() { key = "on_off",value =new List<string>(){ "on","off" }, curValue="on",state = "on" }, |
| | | new FunctionAttributes() { key = "brightness",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | new FunctionAttributes() { key = "fade_time",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | }, |
| | | }; |
| | | lightSwitch4.SaveFunctionFile(); |
| | | var scene3 = new Scene() |
| | | { |
| | | sid = "scene3", |
| | | userSceneId = "scene3", |
| | | name = "温馨模式", |
| | | roomIds = new List<string>() { room3.roomId }, |
| | | gatewayId = "1234567890123456", |
| | | collect = true, |
| | | functions = new List<SceneFunction>() |
| | | { |
| | | new SceneFunction() |
| | | { |
| | | sid = lightSwitch4.sid, |
| | | status = new List<SceneFunctionStatus>() |
| | | { |
| | | new SceneFunctionStatus() |
| | | { |
| | | key = "on_off", |
| | | value = "off", |
| | | } |
| | | } |
| | | }, |
| | | new SceneFunction() |
| | | { |
| | | sid = lightSwitch4.sid, |
| | | status = new List<SceneFunctionStatus>() |
| | | { |
| | | new SceneFunctionStatus() |
| | | { |
| | | key = "on_off", |
| | | value = "off", |
| | | } |
| | | } |
| | | }, |
| | | } |
| | | }; |
| | | scene3.SaveSceneFile(); |
| | | var scene4 = new Scene() |
| | | { |
| | | sid = "scene4", |
| | | userSceneId = "scene4", |
| | | name = "西餐模式", |
| | | roomIds = new List<string>() { room3.roomId }, |
| | | gatewayId = "1234567890123456", |
| | | collect = false, |
| | | functions = new List<SceneFunction>() |
| | | { |
| | | new SceneFunction() |
| | | { |
| | | sid = lightSwitch4.sid, |
| | | status = new List<SceneFunctionStatus>() |
| | | { |
| | | new SceneFunctionStatus() |
| | | { |
| | | key = "on_off", |
| | | value = "on", |
| | | } |
| | | } |
| | | }, |
| | | new SceneFunction() |
| | | { |
| | | sid = lightSwitch4.sid, |
| | | status = new List<SceneFunctionStatus>() |
| | | { |
| | | new SceneFunctionStatus() |
| | | { |
| | | key = "on_off", |
| | | value = "on", |
| | | } |
| | | } |
| | | }, |
| | | } |
| | | }; |
| | | scene4.SaveSceneFile(); |
| | | #endregion |
| | | #region 卧室 |
| | | var ac = new Function() |
| | | { |
| | | sid = "ac1", |
| | | deviceId = "ac1", |
| | | name = "卧室空调", |
| | | spk = SPK.AcStandard, |
| | | roomIds = new List<string>() { room3.roomId }, |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes() { key = "on_off", value = new List<string>() { "on", "off" }, curValue = "on", state = "on" }, |
| | | new FunctionAttributes() { key = "mode", value = new List<string>() { "cool", "heat", "fan", "auto", "dry" }, curValue = "cool", state = "cool" }, |
| | | new FunctionAttributes() { key = "fan", value = new List<string>() { "high", "medium", "low", "auto" }, curValue = "auto", state = "auto" }, |
| | | new FunctionAttributes() { key = "set_temp", value = new List<string>() { "16", "30"}, curValue = "16", state = "16",max = 30,min = 16 }, |
| | | new FunctionAttributes() { key = "room_temp", value = new List<string>() { }, curValue = "20", state = "20" }, |
| | | new FunctionAttributes() { key = "swing", value = new List<string>() {"up_down", "left_right", "stop" }, curValue = "20", state = "20" }, |
| | | } |
| | | }; |
| | | ac.SaveFunctionFile(); |
| | | var scene5 = new Scene() |
| | | { |
| | | sid = "scene5", |
| | | userSceneId = "scene5", |
| | | name = "阅读", |
| | | roomIds = new List<string>() { room2.roomId }, |
| | | gatewayId = "1234567890123456", |
| | | collect = true, |
| | | }; |
| | | scene5.SaveSceneFile(); |
| | | var scene6 = new Scene() |
| | | { |
| | | sid = "scene6", |
| | | userSceneId = "scene6", |
| | | name = "起床", |
| | | roomIds = new List<string>() { room2.roomId }, |
| | | gatewayId = "1234567890123456", |
| | | collect = false, |
| | | }; |
| | | scene6.SaveSceneFile(); |
| | | #endregion |
| | | |
| | | |
| | | var lightSwitch6 = new Function() |
| | | { |
| | | sid = "lightSwitch6", |
| | | deviceId = "lightSwitch6", |
| | | name = "洗手间灯", |
| | | spk = SPK.LightSwitch, |
| | | roomIds = new List<string>() { room1.roomId }, |
| | | attributes = new List<FunctionAttributes>() |
| | | { |
| | | new FunctionAttributes() { key = "on_off",value =new List<string>(){ "on","off" }, curValue="on",state = "on" }, |
| | | new FunctionAttributes() { key = "brightness",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | new FunctionAttributes() { key = "fade_time",value =new List<string>(){ "0","100" }, curValue="0",state = "0" }, |
| | | }, |
| | | }; |
| | | lightSwitch6.SaveFunctionFile(); |
| | | |
| | | #endregion |
| | | |
| | | var fileList = Common.FileUtlis.Files.ReadFiles(); |
| | | |
| | | foreach (var file in fileList) |
| | | { |
| | | FunctionList.List.IniFunctionList(file,true); |
| | | } |
| | | |
| | | Room.CurrentSpatial.InitRoomListFunctions(); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | MainPage.GoUserPage(false); |
| | | }; |
| | | |
| | | |
| | | |
| | | LoadEventList(); |
| | | account = etAccount.Text.Trim(); |
| | | |
| | | #if DEBUG1211 |