Example #1
0
 public bool GateOperation(GateOperationNotify notify)
 {
     try
     {
         if (_Channel != null)
         {
             return(_Channel.GateOperation(notify));
         }
     }
     catch (CommunicationException)
     {
         if (ParkAdapterConnectFail != null)
         {
             ParkAdapterConnectFail(this, EventArgs.Empty);
         }
     }
     catch (Exception ex)
     {
         Ralid.GeneralLibrary.ExceptionHandling.ExceptionPolicy.HandleException(ex);
     }
     return(false);
 }
Example #2
0
        public override void OperateGate(GateOperationNotify notify)
        {
            Packet p = _PacketCreater.CreateGateOperatePacket(Address, notify.Action);

            _CommComponent.SendPacket(p);
        }
Example #3
0
 public bool GateOperation(GateOperationNotify notify)
 {
     return(_Park.GateOperate(notify));
 }
Example #4
0
 /// <summary>
 /// 操作道闸
 /// </summary>
 /// <param name="notify"></param>
 public abstract void OperateGate(GateOperationNotify notify);