| | |
| | | }; |
| | | openrowlayout.AddChidren(btnopen); |
| | | |
| | | var openBtnSelected = new SelectedButton(); |
| | | var openBtnSelected = new SelectedButton(); |
| | | openrowlayout.AddChidren(openBtnSelected); |
| | | |
| | | var horizontalSeekBarRow = new RowLayout |
| | |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(160), |
| | | X = Application.GetRealWidth(80), |
| | | LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor, |
| | | LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor, |
| | | }; |
| | | openframelayout.AddChidren(horizontalSeekBarRow); |
| | | var horizontalSeekBarVol = new DiyImageSeekBar |
| | |
| | | int Progressvalue = 100; |
| | | EventHandler<int> progressclick = (sender, e) => |
| | | { |
| | | Console.WriteLine("12345"); |
| | | SelectedDeviceStatusaction = "yes"; |
| | | Progressvalue = horizontalSeekBarVol.Progress; |
| | | if (switchdictionary.ContainsKey("TaskType")) |
| | |
| | | openframelayout.AddChidren(horizontalSeekBarRow); |
| | | var horizontalSeekBarVol = new DiyImageSeekBar |
| | | { |
| | | X = Application.GetRealWidth(80), |
| | | Y = openrowlayout.Bottom, |
| | | X = Application.GetRealWidth(80), |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(160), |
| | | IsProgressTextShow = true,//显示百分比 |
| | |
| | | ProgressBarColor = ZigbeeColor.Current.LogicProgressColorSelected,//选中进度条颜色 |
| | | ThumbImagePath = "ZigeeLogic/progressbtn2.png",//进度条按钮图标 |
| | | ThumbImageHeight = Application.GetRealHeight(56),//进度条按钮图标的高度(默认正方形:宽和高一样) |
| | | ProgressTextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | ProgressTextColor = ZigbeeColor.Current.LogicBtnCancelColor,//进度条原颜色 |
| | | ProgressTextSize = 14,//显示百分比字体大小 |
| | | SeekBarViewHeight = Application.GetRealHeight(10),//进度条的高度 |
| | | SeekBarViewHeight = Application.GetRealHeight(10), |
| | | }; |
| | | openframelayout.AddChidren(horizontalSeekBarVol); |
| | | |
| | |
| | | } |
| | | } |
| | | break; |
| | | |
| | | ///空调 |
| | | case DeviceType.Thermostat: |
| | | { |
| | | |
| | |
| | | var closeBtnSelected = new SelectedButton(); |
| | | closerowlayout.AddChidren(closeBtnSelected); |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | | mUIPickerView.OnSelectChangeEvent += (s1, s2, s3) => |
| | | { |
| | |
| | | |
| | | } |
| | | }; |
| | | |
| | | #endregion |
| | | |
| | | #endregion |
| | | //默认26,自动,中风 |
| | | int indextemperature = 10, indexmode = 2, indexspeed = 1; |
| | | if (edit && TaskList != null) |
| | | { |
| | | |
| | | foreach (var value in TaskList) |
| | | { |
| | | if (TaskList.Count == 1) |
| | |
| | | ///取消事件 |
| | | EventHandler<MouseEventArgs> closeclick = (sender, e) => |
| | | { |
| | | |
| | | //清除之前数据; |
| | | taskListInfo.Clear(); |
| | | dictionary(modedictionary, "TaskType", "5"); |