Example #1
0
        private void _contextMenus_ExitClicked(object sender, EventArgs e)
        {
            try
            {
                _continue = false;
                _serialCon.Disconnect();
            }
            catch
            {
            }

            try
            {
                _webAccessHost.StopWeb();
            }
            catch
            {
            }
            Application.Exit();
        }
Example #2
0
 public void Disconnect() => SerialConnector.Disconnect();