public void Stop() { devices.OnNewEvent -= Devices_OnNewEvent; devices.Stop(); }
protected override void OnClosing(CancelEventArgs e) { base.OnClosing(e); inputdevices.Stop(); }