| | |
| | | Y = validTimeText.Bottom + Application.GetRealHeight (4), |
| | | Width = Application.GetRealWidth (450), |
| | | Height = Application.GetRealHeight (100), |
| | | PlaceholderTextColor = 0xffc1c1c1, |
| | | PlaceholderText = doorLock.VailidTime.ToString (), |
| | | //Text = doorLock.VailidTime.ToString () , |
| | | PlaceholderTextColor = 0xffc1c1c1, |
| | | TextAlignment = TextAlignment.Center, |
| | | BorderWidth = 1, |
| | | Radius = 5, |
| | |
| | | Height = Application.GetRealHeight (100), |
| | | X = Application.GetRealWidth (80), |
| | | Y = validCountText.Bottom + Application.GetRealHeight (10), |
| | | PlaceholderText = doorLock.Times, |
| | | PlaceholderTextColor = 0xffc1c1c1, |
| | | PlaceholderText = doorLock.Times, |
| | | TextAlignment = TextAlignment.Center, |
| | | BorderWidth = 1, |
| | | Radius = 5, |
| | |
| | | System.Threading.Thread.Sleep (6000); |
| | | var randomNumSet = Control.ControlBytesSendHasReturn (Command.CreatConnection, doorLock.SubnetID, doorLock.DeviceID, new byte [] { 1 }); |
| | | if (randomNumSet != null) { |
| | | Console.WriteLine ("send:" + randomNumSet.ToString ()); |
| | | Utlis.WriteLine ("send:" + randomNumSet.ToString ()); |
| | | byte [] randomBytes = new byte [8]; |
| | | System.Array.Copy (randomNumSet, 1, randomBytes, 0, 8); |
| | | var sendBytes = new byte [13]; |
| | |
| | | try { |
| | | while (true) { |
| | | //执行方法() ; |
| | | //Console.WriteLine ("ssss333333"); |
| | | //Utlis.WriteLine ("ssss333333"); |
| | | System.Threading.Thread.Sleep (60000);//每1分钟刷新一次 以毫秒为单位 |
| | | readStatus (doorLock); |
| | | } |