Example #1
0
        //</王尔沛_2>
        #endregion

        #region 曾丽川
        //<曾丽川_2>
        private void BtnAddRole_Click(object sender, EventArgs e)
        {
            AddUserGroupForm addUserGroupForm = new AddUserGroupForm(new List <int>());

            addUserGroupForm.ShowDialog();
            DgvGroupMan.DataSource = null;
            DgvGroupMan.DataSource = new PermBLL().SelectGroup(new sys_group());
        }
Example #2
0
        private void BtnUpdateRole_Click(object sender, EventArgs e)
        {
            List <int> list = new List <int>();

            list = SelectId();
            if (list.Count == 0)
            {
                MessageBox.Show("请勾选用户组");
            }
            else
            {
                AddUserGroupForm addUserGroupForm = new AddUserGroupForm(list);
                addUserGroupForm.Text = "修改用户组";
                addUserGroupForm.ShowDialog();
                DgvGroupMan.DataSource = null;
                DgvGroupMan.DataSource = new PermBLL().SelectGroup(new sys_group());
            }
        }