Ejemplo n.º 1
0
 private void Action()
 {
     if (!service.WriteCommand(ServiceEvent.ChangeTrailers, KeyA.Concat(AccessBits).Concat(KeyB).Concat(Encoding.ASCII.GetBytes(new char[] { (char)SelectedKey })).ToArray()))
     {
         return;
     }
     if (service.WaitForEndOfOperation() && service.CurrentState == ProgrammerState.OperationSuccess && service.CurrentCard != null)
     {
         service.CurrentAccess = service.rfidFactory.CreateRfidAccess(KeyA, KeyB, AccessBits, SelectedKey);
     }
 }