Ejemplo n.º 1
0
        private void EndSessionCommandImpl()
        {
            if (_cts != null)
            {
                _cts.Cancel();
            }

            ConsoleService.IsEnabled = false;

            SerialPortService.DataReceived -= SerialPortService_DataReceived;

            SerialPortService.Close();

            IsRunning = false;

            if (Ended != null)
            {
                Ended(this, new EventArgs());
            }
        }