Пример #1
0
 private void BindGroups()
 {
     vwarDAL.PermissionsManager prmManager = new vwarDAL.PermissionsManager();
     CurrentUserGroups.DataSource = prmManager.GetGroupsByOwner(Context.User.Identity.Name);
     CurrentUserGroups.DataBind();
     UsersPerGroup.DataSource = new List <String>();
     UsersPerGroup.DataBind();
     prmManager.Dispose();
 }
Пример #2
0
    private void SetSelectedGroupsUsers(string selectedGroup)
    {
        vwarDAL.PermissionsManager prmManager = new vwarDAL.PermissionsManager();
        var data = prmManager.GetGroupsUsers(selectedGroup);

        UsersPerGroup.DataSource = data;
        CurrentUsers             = data;
        UsersPerGroup.DataBind();
        prmManager.Dispose();
    }
Пример #3
0
    private void BindGroups()
    {
        vwarDAL.PermissionsManager prmManager = new vwarDAL.PermissionsManager();
        GroupList g1 = prmManager.GetGroupsByOwner(Context.User.Identity.Name);
        GroupList g2 = prmManager.GetGroupsByAdministrator(Context.User.Identity.Name);

        foreach (UserGroup g in g2)
        {
            g1.Add(g);
        }

        CurrentUserGroups.DataSource = g1;
        CurrentUserGroups.DataBind();
        UsersPerGroup.DataSource = new List <String>();
        UsersPerGroup.DataBind();
        prmManager.Dispose();
    }