//! \brief dispose this object protected override void _Dispose() { if (null != m_SerialPort) { m_SerialPort.Dispose(); m_SerialPort = null; } base._Dispose(); }
//! find HID devices public static System.String[] FindDevice() { SerialPortDriver tDriver = new SerialPortDriver(); return(tDriver.FindDevice(tDriver.DeviceType())); }
//! \brief constructor with ID public SerialPortAdapter(SafeID tID) : base(tID, new SerialPortDriver()) { m_SerialPort = m_Device as SerialPortDriver; }
//! \brief default constructor public SerialPortAdapter() : base(null, new SerialPortDriver()) { m_SerialPort = m_Device as SerialPortDriver; }