public Trainee(Trainee other) : base(other.Id) { LastName = other.LastName; FirstName = other.FirstName; SchoolName = other.SchoolName; TeacherName = other.TeacherName; PhoneNumber = other.PhoneNumber; Gender = other.Gender; Address = new Address(other.Address); DateOfBirth = other.DateOfBirth; CurrCarType = other.CurrCarType; NumOfFinishedLessons = other.NumOfFinishedLessons; NumOfTests = other.NumOfTests; IsAlreadyDidTest = other.IsAlreadyDidTest; }
public Trainee(Trainee sourceTrainee) { ID = sourceTrainee.ID; Address = sourceTrainee.Address; CarType = sourceTrainee.CarType; DateOfBirth = sourceTrainee.DateOfBirth; DrivingSchoolName = sourceTrainee.DrivingSchoolName; FirstName = sourceTrainee.FirstName; GearBoxType = sourceTrainee.GearBoxType; Gender = sourceTrainee.Gender; LastName = sourceTrainee.LastName; NumberOfLessons = sourceTrainee.NumberOfLessons; Phone = sourceTrainee.Phone; TeacherName = sourceTrainee.TeacherName; }
public Trainee(Trainee other) : base(other.Id) { LastName = other.LastName; FirstName = other.FirstName; SchoolName = other.SchoolName; TeacherName = other.TeacherName; PhoneNumber = other.PhoneNumber; Gender = other.Gender; Address = new Address(other.Address); DateOfBirth = other.DateOfBirth; LastTest = new DateTime(other.LastTest.Ticks); CurrCarType = other.CurrCarType; CurrGearType = other.CurrGearType; NumOfFinishedLessons = other.NumOfFinishedLessons; NumOfTests = other.NumOfTests; IsAlreadyDidTest = other.IsAlreadyDidTest; ExistingLicenses = new List <CarTypeEnum>(other.ExistingLicenses); }