Exemplo n.º 1
0
        protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
        {
            if (e.NavigationMode == System.Windows.Navigation.NavigationMode.Back)
            {
                QuitException.Quit();
            }

            base.OnNavigatedFrom(e);
        }
Exemplo n.º 2
0
 private void ButtonExit_Click(object sender, EventArgs e)
 {
     QuitException.Quit();
 }