| | |
| | | ac.currentSystemMode = attriButeList[0].AttriButeData; |
| | | ac.LastDateTime = DateTime.Now; |
| | | break; |
| | | |
| | | case 4099: |
| | | var value = Convert.ToString(attriButeList[0].AttriButeData, 2).PadLeft(16, '0'); |
| | | var modeStr = value.Substring(value.Length - 5, 5); |
| | | for (int j = 0; j < modeStr.Length; j++) |
| | | { |
| | | ac.listSupportMode[j] = Convert.ToInt32(modeStr[j]) == 49 ? 1 : 0; |
| | | } |
| | | break; |
| | | |
| | | case 4097: |
| | | //过虑网清洗标志:42 |
| | | ac.CleanStatu = attriButeList[0].AttriButeData == 42; |
| | | break; |
| | | } |
| | | |
| | | var row = rowLayout.GetChildren(0) as CategoryFunctionRow; |
| | |
| | | var floors = new SelectFloor (); |
| | | AddChidren(floors); |
| | | floors.Init(580,330,Direction.Right); |
| | | floors.FloorAction += (floorName) => |
| | | floors.changeFloor = true; |
| | | floors.FloorAction += (floorId) => |
| | | { |
| | | floorBtn.Text = floorName; |
| | | floorBtn.Text = Config.Instance.Home.GetFloorNameById(floorId); |
| | | RefreshBodyView(); |
| | | }; |
| | | } |
| | |
| | | BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor |
| | | }; |
| | | functionSceneBodyView.AddChidren(functionTypeScrowView); |
| | | //functionSceneBodyView.SetCornerWithSameRadius(Application.GetRealHeight(50), HDLUtils.RectCornerBottomLeft); |
| | | |
| | | deviceListScrolView = new VerticalScrolViewLayout |
| | | { |
| | |
| | | BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor |
| | | }; |
| | | functionSceneBodyView.AddChidren(deviceListScrolView); |
| | | //deviceListScrolView.SetCornerWithSameRadius(Application.GetRealHeight(50), HDLUtils.RectCornerTopLeft); |
| | | |
| | | tempFunctionTypeBtn = new FunctionButton(); |
| | | |
| | | EventHandler<MouseEventArgs> ShowSameTypeFunction = (object typeSender, MouseEventArgs mouseEventArgs) => |
| | |
| | | ac.ReadFanMode(); |
| | | ac.ReadSystemMode(); |
| | | ac.ReadSystemFansSwingMode(); |
| | | ac.ReadModeSupport(); |
| | | ac.ReadCleanStatu(); |
| | | }); |
| | | } |
| | | else |
| | |
| | | ac.ReadFanMode(); |
| | | ac.ReadSystemMode(); |
| | | ac.ReadSystemFansSwingMode(); |
| | | ac.ReadModeSupport(); |
| | | ac.ReadCleanStatu(); |
| | | } |
| | | } |
| | | |
| | | var deviceTypeRowLayout = new RowLayout() |
| | | { |
| | | Height = Application.GetRealHeight(127 + 35), |
| | | Height = Application.GetRealHeight(129 + 35), |
| | | LineColor = ZigbeeColor.Current.GXCBackgroundColor, |
| | | Tag = deviceUI |
| | | }; |
| | |
| | | BorderWidth = 1 |
| | | }; |
| | | row.AddChidren(roomBtn); |
| | | roomBtn.SetViewShadow(true,5); |
| | | |
| | | if (room.IsLove) |
| | | { |
| | | roomBtn.IsSelected = true; |
| | |
| | | var sceneView = new SceneCategoryView(0, 0); |
| | | sceneScrolView.AddChidren(sceneView); |
| | | sceneView.Init(scene, room); |
| | | sceneView.SetViewShadow(true); |
| | | GetDelayScene(sceneScrolView); |
| | | } |
| | | } |
| | |
| | | { |
| | | if (delayScenesListResponseInfo.ScenesId == sceneView.scene.Id) |
| | | { |
| | | var times = delayScenesListResponseInfo.RemainTime; |
| | | sceneView.scene.RemainTime = times; |
| | | sceneView.scene.RemainTime = delayScenesListResponseInfo.RemainTime; |
| | | new System.Threading.Thread(() => |
| | | { |
| | | while (times > 0) |
| | | while (sceneView.scene.RemainTime > 0) |
| | | { |
| | | System.Threading.Thread.Sleep(1000); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | sceneView.SetTimeText(CommonFormResouce.GetTimeString(times)); |
| | | sceneView.SetTimeText(CommonFormResouce.GetTimeString(sceneView.scene.RemainTime)); |
| | | }); |
| | | times -= 1; |
| | | sceneView.scene.RemainTime -= 1; |
| | | } |
| | | Application.RunOnMainThread(() => |
| | | { |