private void BExitClick(object sender, MouseButtonEventArgs e) { e.Handled = true; if (!(bool)Message.Show((string)Application.Current.Resources["Dialogid2"], (string)Application.Current.Resources["Dialogid4"], true)) { return; } Controller.Close(); }
public MainWindow() { Application.Current.Exit += (s, e) => { Settings.Save(); }; Closed += (s, e) => { Controller.Close(); }; InitializeComponent(); GNew.MouseDown += Drag; GList.MouseDown += Drag; BExit.Click += (s, e) => { Controller.Close(); }; Settings.Load(); Accounts.ItemsSource = Settings.AccountsSettings; Instance = this; label4.Content = typeof(Model).Assembly.GetName().Version; }
private void Window_Closed(object sender, EventArgs e) { Controller.Close(); }