Esempio n. 1
0
        public static Student CreateFromLine(string i_Line)
        {
            Student retStudent = new Student();
            string[] studentParts = i_Line.Split(',');
            string[] nameParts = studentParts[0].Split(' ');
            retStudent.FirstName = nameParts[0];
            retStudent.LastName = nameParts[1];
            retStudent.Phone = studentParts[2];
            retStudent.Age = int.Parse(studentParts[3]);
            retStudent.Level = (eStudentLevel)int.Parse(studentParts[1]);

            return retStudent;
        }
Esempio n. 2
0
 public StudentListItem(Student i_Student)
 {
     m_Student = i_Student;
     m_Student.PropertyChanged += new EventHandler(m_Student_PropertyChanged);
     ReBuildItem();
 }