public void SetDependenciesFromData(int tID_) { tutorID = -1; if (tID_ != -1 && familyID != -1) { Family family = peopleController.FindFamilyByID(familyID); if (family != null) { PersonBehavior tutor = family.FindMemberByID(tID_); if (tutor != null) { tutor.AddToTutory(this); } } } }