private void _contextMenus_ExitClicked(object sender, EventArgs e) { try { _continue = false; _serialCon.Disconnect(); } catch { } try { _webAccessHost.StopWeb(); } catch { } Application.Exit(); }
public void Disconnect() => SerialConnector.Disconnect();