public bool OpenDevice(HidDevice adevice) { if (adevice != null) { this.device = adevice; return OpenCurrentDevice(); } return false; }