| | |
| | | /// 动作信息 1 开关/ 3亮度调节
|
| | | /// </summary>
|
| | | private Dictionary<int, Safeguard.TaskListInfo> dicTaskinfo = new Dictionary<int, Safeguard.TaskListInfo>();
|
| | | /// <summary>
|
| | | /// 进度条最大值
|
| | | /// </summary>
|
| | | private int MaxValue = 254;
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | detailBackFrame.AddChidren(btnPersent);
|
| | | if (dicTaskinfo.ContainsKey(3) == true)
|
| | | {
|
| | | btnPersent.Text = dicTaskinfo[3].Data1 + "%";
|
| | | btnPersent.Text = ((int)(dicTaskinfo[3].Data1 * 1.0 / MaxValue * 100)) + "%";
|
| | | }
|
| | |
|
| | | //进度条
|
| | | var seekBar = new SeekBarControl(919);
|
| | | seekBar.Y = Application.GetRealHeight(268);
|
| | | seekBar.ProgressBarColor = 0xfffdb500;
|
| | | seekBar.MaxValue = this.MaxValue;
|
| | | seekBar.Enable = false;
|
| | | if (dicTaskinfo.ContainsKey(3) == true)
|
| | | {
|
| | |
| | | detailBackFrame.AddChidren(seekBar);
|
| | | seekBar.ProgressChangedEvent += (div, value) =>
|
| | | {
|
| | | btnPersent.Text = value + "%";
|
| | | btnPersent.Text = ((int)(value * 1.0 / MaxValue * 100)) + "%";
|
| | | };
|
| | |
|
| | | //线
|
| | |
| | | seekBar.Enable = true;
|
| | | if (seekBar.Progress == 0)
|
| | | {
|
| | | seekBar.Progress = 100;
|
| | | seekBar.Progress = MaxValue;
|
| | | btnPersent.Text = "100%";
|
| | | }
|
| | |
|
| | |
| | | dicTaskinfo = null;
|
| | |
|
| | | //获取状态的显示文本
|
| | | string statuText = HdlSafeguardLogic.Current.GetLightAlarmStatuText(listData);
|
| | | string statuText = HdlSafeguardLogic.Current.GetAdjustTargetStatuText(listData);
|
| | | this.FinishSelectEvent?.Invoke(statuText, listData);
|
| | |
|
| | | this.CloseForm();
|