예제 #1
0
파일: Student.cs 프로젝트: mvladk/dp2012
        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;
        }
예제 #2
0
 public StudentListItem(Student i_Student)
 {
     m_Student = i_Student;
     m_Student.PropertyChanged += new EventHandler(m_Student_PropertyChanged);
     ReBuildItem();
 }