Exemplo n.º 1
0
 private void Button1Click(object sender, RoutedEventArgs e)
 {
     if(MessageBox.Show(ResMain.LogoutConfirm, ResMain.Logout, MessageBoxButton.OKCancel) == MessageBoxResult.OK)
     {
         var l = new Login();
         l.Show();
         Close();
         Application.Current.Properties.Clear();
     }
 }
Exemplo n.º 2
0
        private void btnOnClickExit(object sender, MouseButtonEventArgs e)
        {
            Login l = new Login();

            this.NavigationService.Navigate(l);
        }