public void start() { deviceListener = new DeviceListener(); deviceListener.connected += new ConnectDeviceEventHandler(connected); deviceListener.disconnected += new DisconnectDeviceEventHandler(disconnected); deviceListener.startListening(); }