/// <summary> /// Reads all audit actions for the current selected role and shows these settings in the form /// </summary> private void ReflectCurrentAuditActions() { RoleAuditActionCollection roleAuditActions = SecurityGuiHelper.GetAllAuditActionsForRole(_roleID); // check the checkboxes in the cblAuditActions list if the value matches an object in the collection foreach (RoleAuditActionEntity roleAuditAction in roleAuditActions) { cblAuditActions.Items.FindByValue(roleAuditAction.AuditActionID.ToString()).Selected = true; } }