private void TansferOut_Closing(object sender, CancelEventArgs e) { // If our instance of DcdEvent is listening to the decoder, we need to make // sure we tell DcdEvent to stop listening. if (dcdEvent.IsListening) { dcdEvent.StopScanListener(); } if (hDcd != null) { hDcd.Dispose(); } }
private void closeEventScan() { if (dcdEvent.IsListening) { dcdEvent.StopScanListener(); } if (hDcd != null) { hDcd.Dispose(); } }
public override void Stop() { // If our instance of DcdEvent is listening to the decoder, we need to make // sure we tell DcdEvent to stop listening. if (dcdEvent.IsListening) { dcdEvent.StopScanListener(); } if (hDcd != null) { hDcd.Dispose(); } }