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