private void roleAddBtn_Click(object sender, EventArgs e) { if (!CanSuperAdmin("add roles")) { return; } RoleEditForm dlg = new RoleEditForm(null); dlg.ShowDialog(this); }
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); }