Пример #1
0
        protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
        {
            if (e.NavigationMode == System.Windows.Navigation.NavigationMode.Back)
            {
                QuitException.Quit();
            }

            base.OnNavigatedFrom(e);
        }
Пример #2
0
 private void ButtonExit_Click(object sender, EventArgs e)
 {
     QuitException.Quit();
 }