protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e) { if (e.NavigationMode == System.Windows.Navigation.NavigationMode.Back) { QuitException.Quit(); } base.OnNavigatedFrom(e); }
private void ButtonExit_Click(object sender, EventArgs e) { QuitException.Quit(); }