Exemple #1
0
 private void Page_Unloaded(object sender, RoutedEventArgs e, string username, int flag)
 {
     if (flag == 0)
     {
         ActUserDelete.Actuserdel(username);
         Application.Current.Shutdown();
     }
 }
Exemple #2
0
        private void btnLogout_Click(object sender, RoutedEventArgs e, string username)
        {
            flag = 1;
            ActUserDelete.Actuserdel(username);
            LoginPage lg = new LoginPage();

            this.NavigationService.Navigate(lg);
        }