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; }
public StudentListItem(Student i_Student) { m_Student = i_Student; m_Student.PropertyChanged += new EventHandler(m_Student_PropertyChanged); ReBuildItem(); }