private void ucRoleList_RoleSelected(object sender, RoleSelectedArg e)
        {
            BizUser bizUser = new BizUser();

            selectedRole = e.Role;
            List <UserDTO> userList = bizUser.GetUserByRole(selectedRole.ID);

            dtgUsersByRole.ItemsSource = userList;
        }
        void frm_RoleSelected(object sender, RoleSelectedArg e, Window window)
        {
            window.Close();
            BizRole bizRole = new BizRole();

            bizRole.AddUserToRole(e.Role.ID, selectedUser.ID);
            var roleList = bizRole.GetRolesByUser(selectedUser.ID);

            dtgRolesByUser.ItemsSource = roleList;
        }
 private void dtgRoles_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangeEventArgs e)
 {
     if (e.AddedItems != null && e.AddedItems.Count > 0)
     {
         var RoleDTO = e.AddedItems[0] as RoleDTO;
         if (RoleDTO != null)
         {
             RoleSelectedArg arg = new RoleSelectedArg();
             arg.Role = RoleDTO;
             if (RoleSelected != null)
             {
                 RoleSelected(this, arg);
             }
         }
     }
 }
Пример #4
0
 void frm_RoleSelected(object sender, RoleSelectedArg e, Window window)
 {
     window.Close();
     bizOrganization.AddRoleToOrganizationUser(organizationUser.ID, e.Role.ID);
     ShowRoles();
 }
Пример #5
0
 void ucRoleList_RoleSelected(object sender, RoleSelectedArg e)
 {
     ucRoleEdit.ShowRole(e.Role);
 }