private void GetFilterData(string[] lines) { SC.ClearFilterValues(); HC.ClearFilterValues(); int startIndex = 0; int endIndex; if (GetLines(lines, ref startIndex, out endIndex, "# Section: Enchantments", "######")) { GetFilterEnchantsData(new ArraySegment <string>(lines, startIndex, endIndex - startIndex)); } startIndex = 0; if (GetLines(lines, ref startIndex, out endIndex, "# Section: Divination Cards", "######")) { GetFilterDivinationData(new ArraySegment <string>(lines, startIndex, endIndex - startIndex)); } startIndex = 0; if (GetLines(lines, ref startIndex, out endIndex, "# Section: Uniques", "######")) { GetFilterUniqueData(new ArraySegment <string>(lines, startIndex, endIndex - startIndex)); } }