/// <summary>
 /// Shows an error message and calls the <see cref="Proxy_Singleton">
 /// Proxy.ExitChatSession()</see> method
 /// </summary>
 /// <param name="errMessage">The error message to display</param>
 private void Error(string errMessage)
 {
     ProxySingleton.ExitChatSession();
     MessageBox.Show(errMessage, "Connection error", MessageBoxButton.OK, MessageBoxImage.Error);
 }
Example #2
0
 /// <summary>
 /// Close the chat session by calling the <see cref="Proxy_Singleton">
 /// ExitChatSession()</see> method, and closing the application
 /// </summary>
 private void Window_Closed()
 {
     ProxySingleton.ExitChatSession();
     Application.Current.Shutdown();
 }