public void ReadStudentsFromFile(string fileName) { XmlDocument XMLData = new XmlDocument(); XMLData.Load(fileName); StudentsContainer students = StudentsContainer.Instance; XmlNode studentsNode = XMLData.SelectSingleNode("//ListOfStudents"); XmlNode studentNode = studentsNode.FirstChild; while (!(studentNode == null)) { students.Add(new Student(studentNode)); studentNode = studentNode.NextSibling; } }
public CreateStudentWindow(StudentsContainer container) { InitializeComponent(); _studentContainer = container; }