| | |
| | | //卷帘控件
|
| | | this.SeekBarSiphonateCurtain = new CurtainRollSeekBar();
|
| | | SeekBarSiphonateCurtain.Y = Application.GetRealHeight(300);
|
| | | SeekBarSiphonateCurtain.Width = Application.GetMinRealAverage(438);
|
| | | SeekBarSiphonateCurtain.Height = Application.GetMinRealAverage(576);
|
| | | SeekBarSiphonateCurtain.Width = this.GetPictrueRealSize(438);
|
| | | SeekBarSiphonateCurtain.Height = this.GetPictrueRealSize(576);
|
| | | SeekBarSiphonateCurtain.Gravity = Gravity.CenterHorizontal;
|
| | | SeekBarSiphonateCurtain.Progress = (device as Rollershade).WcdCurrentPositionLiftPercentage;
|
| | | frameWhiteBack.AddChidren(SeekBarSiphonateCurtain);
|
| | |
| | | //开合帘控件
|
| | | this.SeekBarOpenCurtain = new CurtainSeekBar();
|
| | | SeekBarOpenCurtain.Y = Application.GetRealHeight(334);
|
| | | SeekBarOpenCurtain.Width = Application.GetMinRealAverage(570);
|
| | | SeekBarOpenCurtain.Height = Application.GetMinRealAverage(513);
|
| | | SeekBarOpenCurtain.Width = this.GetPictrueRealSize(570);
|
| | | SeekBarOpenCurtain.Height = this.GetPictrueRealSize(513);
|
| | | SeekBarOpenCurtain.Gravity = Gravity.CenterHorizontal;
|
| | | SeekBarOpenCurtain.IsProgressTextShow = false;
|
| | | SeekBarOpenCurtain.Progress = (device as Rollershade).WcdCurrentPositionLiftPercentage;
|
| | |
| | | /// <returns></returns>
|
| | | public override bool CheckResponeResultStatu(ReceiveComandDiv comandDiv, CommonDevice report)
|
| | | {
|
| | | if (comandDiv == ReceiveComandDiv.A节点控制反馈)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | else if (comandDiv == ReceiveComandDiv.A设备属性上报)
|
| | | if (comandDiv == ReceiveComandDiv.A设备属性上报)
|
| | | {
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | | });
|
| | | return true;
|
| | | }
|
| | | return false;
|
| | | }
|