Ejemplo n.º 1
0
 private void UpdateStudent(SimpleEditableStudent source, Student destination)
 {
     destination.ID                 = source.ID;
     destination.FirstName          = source.FirstName;
     destination.LastName           = source.LastName;
     destination.Nickname           = source.Nickname;
     destination.EmailAddress       = source.EmailAddress;
     destination.ParentEmailAddress = source.ParentEmailAddress;
 }
Ejemplo n.º 2
0
 public void SetStudent(Student student)
 {
     _editingStudent = student;
     if (EditingStudent != null)
     {
         EditingStudent.ErrorsChanged -= RaiseCanExecuteChanged;
     }
     EditingStudent = new SimpleEditableStudent();
     EditingStudent.ErrorsChanged += RaiseCanExecuteChanged;
     CopyStudent(student, EditingStudent);
 }