Beispiel #1
0
        private void roleAddBtn_Click(object sender, EventArgs e)
        {
            if (!CanSuperAdmin("add roles"))
            {
                return;
            }

            RoleEditForm dlg = new RoleEditForm(null);

            dlg.ShowDialog(this);
        }
Beispiel #2
0
        private void roleEditBtn_Click(object sender, EventArgs e)
        {
            if (!CanSuperAdmin("edit roles"))
            {
                return;
            }

            UserSecurity.Role role = (UserSecurity.Role)rolesBinding.Current;

            RoleEditForm dlg = new RoleEditForm(role);

            dlg.ShowDialog(this);
        }