Example #1
0
        private void EditRole()
        {
            Users            targetUser  = UserDataGrid.CurrentRow.DataBoundItem as Users;
            FrmUserRoleSetup dlgRoleEdit = new FrmUserRoleSetup(targetUser, rbacService_);

            if (dlgRoleEdit.ShowDialog() == DialogResult.OK)
            {
                Init();
            }
        }
Example #2
0
        private void AddRoleButton_Click(object sender, EventArgs e)
        {
            FrmUserRoleSetup dlgRoleAdd = new FrmUserRoleSetup(rbacService_);

            if (dlgRoleAdd.ShowDialog() == DialogResult.OK)
            {
                Init();
            }
            ;
        }