public XmlNodeList getDay(int day) { TDoc.Load(tdocLocation); XmlNode schedule = getSchedule(); switch (day) { case 1: { return(schedule.SelectNodes("sunday")); break; } case 2: { return(schedule.SelectNodes("monday")); break; } case 3: { return(schedule.SelectNodes("tuesday")); break; } case 4: { return(schedule.SelectNodes("wednesday")); break; } case 5: { return(schedule.SelectNodes("thursdayday")); break; } case 6: { return(schedule.SelectNodes("friday")); break; } case 7: { return(schedule.SelectNodes("saturday")); break; } } return(null); }
public void load() { SDoc.Load(sdocLocation); TDoc.Load(tdocLocation); }