Example #1
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ConnectToServer.Disconnect();
     Application.Current.Shutdown();
 }
Example #2
0
 private void Button_Click_2(object sender, RoutedEventArgs e)
 {
     ConnectToServer.Disconnect();
     Application.Current.Shutdown();
 }