| | |
| | | }; |
| | | cellFrame.AddChidren(btnCell); |
| | | |
| | | |
| | | #if __IOS__ |
| | | //btnCell.Padding = new Padding(0,0,0,0); |
| | | btnCell.Width += 5; |
| | | cellFrame.Width += 5; |
| | | #else |
| | | #endif |
| | | |
| | | |
| | | //门锁状态 |
| | | btnDoorLockIcon = new Button |
| | | //门锁状态 |
| | | btnDoorLockIcon = new Button |
| | | { |
| | | X = Application.GetRealWidth(65), |
| | | Y = Application.GetRealHeight(108), |
| | |
| | | btnCollectIcon.IsSelected = this.device.collect = !btnCollectIcon.IsSelected; |
| | | this.device.CollectFunction(); |
| | | }; |
| | | |
| | | int delayTimeMaxValue = 0;// |
| | | var startTime = DateTime.Now; |
| | | //实时视频 |
| | | this.rtvFL.SetClickListener((fl, btnStateImage, btnStateText) => |
| | | { |
| | | bool isDeyayClick = false; |
| | | var clickTime = DateTime.Now; |
| | | if ((clickTime - startTime).TotalMilliseconds > delayTimeMaxValue) |
| | | { |
| | | delayTimeMaxValue = 2*1000; |
| | | startTime = clickTime; |
| | | isDeyayClick = true; |
| | | } |
| | | if (!isDeyayClick) |
| | | { |
| | | return; |
| | | } |
| | | CommonMethod.Current.SkipRTVActivity(this.device.sid, this.device.deviceId, this.device.spk, false); |
| | | |
| | | }); |
| | | //临时密码 |
| | | this.pswFL.SetClickListener((fl, btnStateImage, btnStateText) => |
| | |
| | | private void CalculatedPosition() |
| | | { |
| | | this.btnCurrDeviceName.Width = this.btnCurrDeviceName.GetTextWidth(); |
| | | this.btnCurrDeviceName.Width += 10; |
| | | this.btnCurrDeviceName.Width += 10; |
| | | if (this.btnCurrDeviceName.GetTextWidth() > this.btnCollectIcon.X) |
| | | { |
| | | //重新计算宽度 |