| | |
| | | |
| | | |
| | | #if DEBUG |
| | | Button testBtn = new Button() |
| | | { |
| | | X = Application.GetRealWidth(80), |
| | | Height = Application.GetRealHeight(64), |
| | | BackgroundColor = 0xFFFF0000 |
| | | }; |
| | | bodyView.AddChidren(testBtn); |
| | | int ddd = 0; |
| | | testBtn.MouseUpEventHandler = (sender, e) => { |
| | | ddd++; |
| | | //Button testBtn = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(80), |
| | | // Height = Application.GetRealHeight(64), |
| | | // BackgroundColor = 0xFFFF0000 |
| | | //}; |
| | | //bodyView.AddChidren(testBtn); |
| | | //int ddd = 0; |
| | | //testBtn.MouseUpEventHandler = (sender, e) => { |
| | | // ddd++; |
| | | |
| | | Function function_online = FunctionList.List.GetLightList().Find((obj) => obj.sid == "0001017DB92D2602020100010101"); |
| | | if (ddd % 2 == 0) |
| | | { |
| | | function_online.online = true; |
| | | } |
| | | else |
| | | { |
| | | function_online.online = false; |
| | | } |
| | | HomePage.LoadEvent_RefreshDevcieOnline(function_online); |
| | | FunctionPage.UpdataOnline(function_online); |
| | | RoomPage.UpdataOnline(function_online); |
| | | // Function function_online = FunctionList.List.GetLightList().Find((obj) => obj.sid == "0001017DB92D2602020100010101"); |
| | | // if (ddd % 2 == 0) |
| | | // { |
| | | // function_online.online = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // function_online.online = false; |
| | | // } |
| | | // HomePage.LoadEvent_RefreshDevcieOnline(function_online); |
| | | // FunctionPage.UpdataOnline(function_online); |
| | | // RoomPage.UpdataOnline(function_online); |
| | | |
| | | |
| | | }; |
| | | //}; |
| | | #endif |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | functionList.AddRange(FunctionList.List.GetAirFreshList()); |
| | | } |
| | | functionList.OrderByDescending(o => o.controlCounter).ToList(); |
| | | else if(titleId == StringId.MechanicalArm) |
| | | { |
| | | functionList.AddRange(FunctionList.List.GetMechanicalArmList()); |
| | | } |
| | | functionList = functionList.OrderByDescending(o => o.controlCounter).ToList(); |
| | | |
| | | ShowFunctionRow(functionList); |
| | | |
| | | LoadDialog_ChangeFloor(); |
| | | |
| | | |
| | | #region 加载组合调光场景 |
| | | if (titleId == StringId.Lights) |
| | | { |
| | | foreach (var lightScene in FunctionList.List.scenes) |
| | | { |
| | | if (lightScene.sceneType == SceneType.LightScene) |
| | | if (lightScene != null) |
| | | { |
| | | functionListView.AddChidren(new Button() { Height = Application.GetRealHeight(12) }); |
| | | var sceneRow = new SceneControlZone(lightScene); |
| | | functionListView.AddChidren(sceneRow); |
| | | sceneRow.LoadView(); |
| | | } |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | continue; |
| | | } |
| | | if (function.spk == SPK.LightRGB || function.spk == SPK.LightDimming) |
| | | if (function.spk == SPK.LightRGBW || function.spk == SPK.LightRGB || function.spk == SPK.LightDimming) |
| | | { |
| | | var functionDiv = new FunctionControlZone(function) |
| | | { |