コード例 #1
0
        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;
            }
        }
コード例 #2
0
 public CreateStudentWindow(StudentsContainer container)
 {
     InitializeComponent();
     _studentContainer = container;
 }