| | |
| | | }; |
| | | flMain.AddChidren(devicefra); |
| | | devicefra.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight); |
| | | |
| | | #region -------取消 完成 |
| | | var timetype = new RowLayout |
| | | { |
| | |
| | | }; |
| | | timetype.AddChidren(Btncomplete); |
| | | #endregion |
| | | |
| | | |
| | | string SelectedDeviceStatusaction = "no"; |
| | | actionsInfo.Add("LinkType", 0); |
| | |
| | | openframelayout.AddChidren(horizontalSeekBarRow); |
| | | var horizontalSeekBarVol = new DiyImageSeekBar |
| | | { |
| | | Y = openrowlayout.Bottom, |
| | | X = Application.GetRealWidth(80), |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(160), |
| | | IsProgressTextShow = true,//显示百分比 |
| | |
| | | ProgressTextSize = 13,//显示百分比字体大小 |
| | | SeekBarViewHeight = Application.GetRealHeight(10),//进度条的高度 |
| | | }; |
| | | horizontalSeekBarRow.AddChidren(horizontalSeekBarVol); |
| | | openframelayout.AddChidren(horizontalSeekBarVol); |
| | | |
| | | #endregion |
| | | |
| | |
| | | #endregion |
| | | |
| | | int Progressvalue = 100; |
| | | EventHandler<int> progressclick = (sender, e) => |
| | | EventHandler<int> progressclick = (sender, e) => |
| | | { |
| | | SelectedDeviceStatusaction = "yes"; |
| | | Progressvalue = horizontalSeekBarVol.Progress; |
| | |
| | | openframelayout.AddChidren(horizontalSeekBarRow); |
| | | var horizontalSeekBarVol = new DiyImageSeekBar |
| | | { |
| | | Y = openrowlayout.Bottom, |
| | | X = Application.GetRealWidth(80), |
| | | Width = Application.GetRealWidth(920), |
| | | Height = Application.GetRealHeight(160), |
| | | IsProgressTextShow = true,//显示百分比 |
| | |
| | | ProgressTextSize = 13,//显示百分比字体大小 |
| | | SeekBarViewHeight = Application.GetRealHeight(10),//进度条的高度 |
| | | }; |
| | | horizontalSeekBarRow.AddChidren(horizontalSeekBarVol); |
| | | openframelayout.AddChidren(horizontalSeekBarVol); |
| | | |
| | | #endregion |
| | | |
| | |
| | | } |
| | | } |
| | | break; |
| | | |
| | | case DeviceType.Thermostat: |
| | | { |
| | | |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | Btncomplete.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | |