public IInputDevice[] FindDevices() { try { if (device == null) device = new RemoteInputDevice("COM6"); else if (!device.IsConnected) device.Reconnect(); return new IInputDevice[] { device }; } catch(Exception) { return new IInputDevice[0]; } }
public bool Equals(RemoteInputDevice other) { return(object.ReferenceEquals(this, other)); }