private static void buildArrlSectionList() { arrlSections = new SectionList(); arrlAbbr = arrlAbbr.OrderBy(x => x).ToArray(); foreach (string section in arrlAbbr) { Section s = new Section() { Abbr = section }; arrlSections.Add(s); } }
private static void buildRacSectionList() { racSections = new SectionList(); racAbbr = racAbbr.OrderBy(x => x).ToArray(); foreach (string section in racAbbr) { Section s = new Section() { Abbr = section }; racSections.Add(s); } }
private static void buildAllSections() { if (arrlSections == null) { buildArrlSectionList(); } if (racSections == null) { buildRacSectionList(); } allSections = new SectionList(); foreach (Section section in arrlSections) { allSections.Add(section); } foreach (Section section in racSections) { allSections.Add(section); } }