Exemple #1
0
 private void btYes_Click(object sender, EventArgs e)
 {
     foreach (var t in _deleUser)
     {
         UserRole rf = new UserRole(t, _rid);
         _userRoleLogic.AddUsrRole(rf);
     }
     DialogResult = DialogResult.OK;
 }
Exemple #2
0
        private void btYes_Click(object sender, EventArgs e)
        {
            List <User> selectedUsers = GetChildUsers();
            UserRole    rf            = new UserRole();

            foreach (var u in selectedUsers)
            {
                rf.UserID = u.UserID;
                rf.RoleID = _rid;
                _userRoleLogic.AddUsrRole(rf);
            }
            DialogResult = DialogResult.OK;
        }