public bool isOpen() { if (canUsbDevice != null) { return(canUsbDevice.isOpen()); } return(false); }
/// <summary> /// Check if the CAN device is opened. /// </summary> /// <returns>True if the device is open, otherwise false.</returns> public bool isOpen() { bool retVal = false; //lock (m_lockObject) { if (m_canDevice.isOpen()) { retVal = true; } else { retVal = false; } } return(retVal); }