Example #1
0
        private void DelUserAuth()
        {
            List <UserAuth> userauths = new List <UserAuth>();

            List <Authority> checkauth = nodesTools.GetUserNode <Authority>(tree_user.Nodes);

            foreach (Authority auth in checkauth)
            {
                UserAuth userAuth = new UserAuth {
                    AuthID = auth.id, UserID = int.Parse(txblist_user.Tag.ToString())
                };
                userauths.Add(userAuth);
            }
            authorityService.DeleteUserAuth(userauths, txblist_user.Tag.ToString());
            SelectUser();
        }