| | |
| | | detailBackFrame.AddChidren(btnPersent);
|
| | | if (dicTaskinfo.ContainsKey(3) == true)
|
| | | {
|
| | | btnPersent.Text = dicTaskinfo[3].Data1 + "%";
|
| | | btnPersent.Text = HdlDeviceCommonLogic.Current.CalculateLightLevelPersent(dicTaskinfo[3].Data1) + "%";
|
| | | }
|
| | |
|
| | | //进度条
|
| | | var seekBar = new SeekBarControl(919);
|
| | | seekBar.Y = Application.GetRealHeight(268);
|
| | | seekBar.ProgressBarColor = 0xfffdb500;
|
| | | seekBar.MaxValue = 100;
|
| | | seekBar.Enable = false;
|
| | | if (dicTaskinfo.ContainsKey(3) == true)
|
| | | {
|
| | | //3:亮度调节
|
| | | seekBar.Progress = dicTaskinfo[3].Data1;
|
| | | seekBar.Progress = HdlDeviceCommonLogic.Current.CalculateLightLevelPersent(dicTaskinfo[3].Data1);
|
| | | }
|
| | | detailBackFrame.AddChidren(seekBar);
|
| | | seekBar.ProgressChangedEvent += (div, value) =>
|
| | |
| | | //百分比调节
|
| | | dicTaskinfo[3] = new Safeguard.TaskListInfo();
|
| | | dicTaskinfo[3].TaskType = 3;
|
| | | dicTaskinfo[3].Data1 = seekBar.Progress;
|
| | | dicTaskinfo[3].Data1 = HdlDeviceCommonLogic.Current.CalculateLightLevel(seekBar.Progress);
|
| | | }
|
| | |
|
| | | var listData = new List<Safeguard.TaskListInfo>();
|
| | |
| | | dicTaskinfo = null;
|
| | |
|
| | | //获取状态的显示文本
|
| | | string statuText = HdlSafeguardLogic.Current.GetLightAlarmStatuText(listData);
|
| | | string statuText = HdlSafeguardLogic.Current.GetAdjustTargetStatuText(listData);
|
| | | this.FinishSelectEvent?.Invoke(statuText, listData);
|
| | |
|
| | | this.CloseForm();
|
| | | };
|
| | | //动画效果
|
| | | frameTransparent.Animate = Animate.DownToUp;
|
| | | }
|
| | |
|
| | | #endregion
|