Example #1
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     EndAllThreads();
     SerialManager.Disconnect();
     while (SerialManager.IsConnected())
     {
         SerialManager.Disconnect();
     }
 }
Example #2
0
 private void MIDisconnect_Click(object sender, RoutedEventArgs e)
 {
     sm.Disconnect();
     MIConnect.IsEnabled = true;
 }
Example #3
0
 private void MenuItem_Serial_Disconnect_Click(object sender, RoutedEventArgs e)
 {
     SerialManager.Disconnect();
 }