| | |
| | | seekBarVoiceControl.BindPageLayout(); |
| | | |
| | | //声音百分比 |
| | | this.btnVoicePersent = new NormalViewControl(Application.GetRealWidth(50), btnVoice.Height, false); |
| | | this.btnVoicePersent = new NormalViewControl(Application.GetRealWidth(55), btnVoice.Height, false); |
| | | btnVoicePersent.X = seekBarVoiceControl.Right + Application.GetRealWidth(8) - seekBarVoiceControl.SeekBarPadding; |
| | | btnVoicePersent.Y = btnVoice.Y; |
| | | btnVoicePersent.TextColor = CSS_Color.PromptingColor1; |
| | |
| | | this.frameTempPsw.AddChidren(picBack); |
| | | |
| | | //密码显示控件 |
| | | var btnPassword = new NormalViewControl(150, 50, true); |
| | | var btnPassword = new NormalViewControl(258, 50, true); |
| | | btnPassword.Gravity = Gravity.CenterHorizontal; |
| | | btnPassword.TextSize = CSS_FontSize.SubheadingFontSize; |
| | | btnPassword.TextColor = CSS_Color.MainBackgroundColor; |
| | |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | ////生成临时密码 |
| | | //this.doorLockData.TempPassword = "987654"; |
| | | //this.doorLockData.StatrtTime = startTime.ToString("yyyy.MM.dd HH:mm"); |
| | | //this.doorLockData.EndTime = endTime.ToString("yyyy.MM.dd HH:mm"); |
| | | ////重新初始化临时密码控件 |
| | | //this.InitTempPasswordControl(); |
| | | } |
| | | }; |
| | | |
| | |
| | | } |
| | | } |
| | | this.seekBarVoiceControl.Progress = this.doorLockData.Voice; |
| | | this.btnVoicePersent.Text = this.doorLockData.Voice.ToString(); |
| | | this.btnVoicePersent.Text = this.doorLockData.Voice.ToString()+"%"; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | /// </summary> |
| | | private void RefreshNowDeviceStatuMemory(Function i_LocalDevice) |
| | | { |
| | | this.doorLockData.IsOnline = i_LocalDevice.online; |
| | | this.doorLockData.IsOnline = i_LocalDevice.isOnline(); |
| | | for (int i = 0; i < i_LocalDevice.attributes.Count; i++) |
| | | { |
| | | var data = i_LocalDevice.attributes[i]; |