| | |
| | | |
| | | public void LoadPage(int titleId) |
| | | { |
| | | |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | if (titleId == StringId.Lights) |
| | | { |
| | |
| | | { |
| | | new TopViewDiv(bodyView, Language.StringByID(titleId)).LoadTopView(); |
| | | } |
| | | |
| | | |
| | | |
| | | #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++; |
| | | |
| | | 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> |
| | | /// 房间内容显示区域 |
| | | /// </summary> |