/// <summary> /// Gets the ignore campus changes repeater data. /// </summary> private void GetIgnoreCampusChangesRepeaterData() { _ignoreCampusChangeRows = new List <IgnoreCampusChangeRow>(); foreach (RepeaterItem item in rptIgnoreCampusChanges.Items) { CampusPicker fromCampus = item.FindControl("cpFromCampus") as CampusPicker; CampusPicker toCampus = item.FindControl("cpToCampus") as CampusPicker; HiddenField hiddenField = item.FindControl("hfRowId") as HiddenField; RockDropDownList ddlCampusCriteria = item.FindControl("ddlAttendanceOrGiving") as RockDropDownList; _ignoreCampusChangeRows.Add(new IgnoreCampusChangeRow { Id = hiddenField.ValueAsInt(), ToCampusId = toCampus.SelectedCampusId, FromCampusId = fromCampus.SelectedCampusId, CampusCriteria = ddlCampusCriteria.SelectedValueAsEnumOrNull <CampusCriteria>() }); } }