Exemple #1
0
        //Goes to add new user
        private void btnAddNewUser_Click(object sender, RoutedEventArgs e)
        {
            lblStatusMessage.Content = "Went to add User.";
            var userWindow = new frmAddEditUser(_userManager);

            if (userWindow.ShowDialog() == true)
            {
                dgUserList.ItemsSource = _userManager.RetrieveUserListByActive();
            }
        }
Exemple #2
0
        //Opens edit user screen
        private void dgUserList_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            lblStatusMessage.Content = "Went to edit User";
            PokedexUser selectedUser = (PokedexUser)dgUserList.SelectedItem;
            var         userWindow   = new frmAddEditUser(selectedUser, _userManager, UserID);

            if (userWindow.ShowDialog() == true)
            {
                refreshUserList();
            }
        }