CSharp/Viewer/Viewer/ViewModels/MainViewModel.cs
/// <summary>
/// Performs a clean shutdown, closing any used resources.
/// </summary>
/// <param name="sender"></param>
/// <param name="args"></param>
Performs a clean shutdown, closing any used resources.
Performs a clean shutdown closing any used resources .
public void CleanShutdown(object sender, CancelEventArgs args)
        {
            if (serialHandler.IsActive)
            {
                serialHandler.StopSerialReaderThread();
            }
        }
public void CleanShutdown ( object sender , CancelEventArgs args ) { if ( serialHandler . IsActive ) { serialHandler . StopSerialReaderThread ( ) ; } }
Performs a clean shutdown, closing any used resources.
Performs a clean shutdown closing any used resources .
sender
object
None
args
CancelEventArgs
None