public void Close() { _StateChk.Stop(); if (null != _PwrBus) { _PwrBus.Close(); _PwrBus = null; } }
public void Close() { _StateChk.Stop(); if (false == bUseModbus) { _PwrCom.Close(); _PwrCom = null; } else { if (null != _PwrBus) { _PwrBus.Close(); _PwrBus = null; } } }