private Person(PersonalData _newPerson, Phone _newPhone, Study _newStudyPlace, Work _newWorkPlace, Other _newOtherData) { this.data = _newPerson; this.phoneNumbers = _newPhone; this.studyPlace = _newStudyPlace; this.workPlace = _newWorkPlace; this.otherData = _newOtherData; this.lastCorrectionDate = DateTime.Now; }
// Создание нового контакта в записной кнажке. public static Person CreatePerson(PersonalData newPerson, Phone newPhone, Study newStudyPlace, Work newWorkPlace, Other newOtherData) { return(new Person(newPerson, newPhone, newStudyPlace, newWorkPlace, newOtherData)); }