public bool LogoutOk(bool logoutOk) { if (logoutOk) { Dispatcher.Invoke(() => { MessageBox.Show("Logout OK!"); _logic.CloseSystem(); Application.Current.Shutdown(); }); return(true); } Dispatcher.Invoke(() => { MessageBox.Show("Logout Fail! - please try again"); }); return(false); }
private void ExitButton_Click(object sender, RoutedEventArgs e) { cl.CloseSystem(); Application.Current.Shutdown(); }