Пример #1
0
 public RadioPanelPZ69SRS(int portFrom, string ipAddressTo, int portTo, HIDSkeleton hidSkeleton) : base(hidSkeleton)
 {
     SRSListenerFactory.SetParams(portFrom, ipAddressTo, portTo);
     SRSListenerFactory.GetSRSListener().Attach(this);
     VendorId  = 0x6A3;
     ProductId = 0xD05;
     CreateRadioKnobs();
     Startup();
 }
 public override void Dispose()
 {
     try
     {
         SRSListenerFactory.GetSRSListener().Detach(this);
         ShutdownBase();
         SRSListenerFactory.Shutdown();
     }
     catch (Exception e)
     {
         SetLastException(e);
     }
 }
Пример #3
0
 public override void Shutdown()
 {
     try
     {
         SRSListenerFactory.GetSRSListener().Detach(this);
         Common.DebugP("Entering SRS Radio Shutdown()");
         ShutdownBase();
         SRSListenerFactory.Shutdown();
     }
     catch (Exception e)
     {
         SetLastException(e);
     }
     Common.DebugP("Leaving SRS Radio Shutdown()");
 }