示例#1
0
 public bool SwitchEntrance(EntranceSwitchNotify notify)
 {
     try
     {
         if (_Channel != null)
         {
             return(_Channel.SwitchEntrance(notify));
         }
     }
     catch (CommunicationException)
     {
         if (ParkAdapterConnectFail != null)
         {
             ParkAdapterConnectFail(this, EventArgs.Empty);
         }
     }
     catch (Exception ex)
     {
         Ralid.GeneralLibrary.ExceptionHandling.ExceptionPolicy.HandleException(ex);
     }
     return(false);
 }
 public bool SwitchEntrance(EntranceSwitchNotify notify)
 {
     _Park.SwitchEntrance(notify);
     return(true);
 }