Пример #1
0
        public FrmUserGroupRoles(MenuStrip _mainform)
        {
            InitializeComponent();

            listbutton = CWUser._UserGroupRoles.Where(x => x.Parent == this.Text && x.Tag == "button" && x.Permission == true).Select(y => y.elementName).ToList();
            ButtonMapperHelper.GetButtons(this, listbutton);

            formbuttonlist = CWUserGroup.RetrieveAllFormButton();
            PopulateToolstripMenuItem(_mainform);
            listusergroup           = CWUserGroup.RetrieveAllUserGroup();
            lboUserGroup.DataSource = listusergroup.Select(x => x.Id).ToList();
            listusergrouproles      = CWUserGroup.RetrieveAllUserGroupRoles();
            GetAllForm();
            listuser           = CWUser.GetAllUser();
            lboUser.DataSource = listuser.Where(y => y.UsergroupId == "ADM").Select(x => x.UserId).ToList();
        }