public Tester(string iD, string last_name, string first_name, string email, DateTime date_of_birth, Gender gender, string phone_number, Address address, int seniority, int max_tests, CarType car_type, GearType gear_type, bool[,] schedule, int max_distance, List <DateTime> appointments) { ID = iD; Last_name = last_name != null?string.Copy(last_name) : null; First_name = first_name != null?string.Copy(first_name) : null; Email = string.Copy(email); Date_of_birth = date_of_birth; Gender = gender; Phone_number = string.Copy(phone_number); Address = address.Clone() as Address; Seniority = seniority; Max_tests = max_tests; Car_type = car_type; Gear_type = gear_type; Copy(Schedule, schedule); Max_distance = max_distance; Appointments = new List <DateTime>(appointments.Count()); foreach (DateTime item in appointments) { Appointments.Add(item); } }
public Test(string TraineeId, string TesterId, string TraineeName, string TesterName, DateTime date, Address address, CarType carType, GearType gearType) { Trainee_ID = TraineeId; Tester_ID = TesterId; Trainee_name = string.Copy(TraineeName); Tester_name = string.Copy(TesterName); Date = date; Starting_point = address.Clone() as Address; Car_type = carType; Gear_type = gearType; Grade = null; Notes = null; }
public Test(int test_code, string tester_ID, string tester_name, string trainee_ID, string trainee_name, DateTime date, Address starting_point, Criteria?criteria, Grade?grade, CarType car_type, GearType gear_type, string notes) { Test_code = test_code; Tester_ID = tester_ID; Tester_name = string.Copy(tester_name); Trainee_ID = trainee_ID; Trainee_name = string.Copy(trainee_name); Date = date; Starting_point = starting_point.Clone() as Address; Criteria = criteria;//.Clone() as Criteria; Grade = grade; Car_type = car_type; Gear_type = gear_type; Notes = notes != null?string.Copy(notes) : null; }
public Trainee(string iD, string last_name, string first_name, string email, Gender gender, string phone_number, Address address, DateTime date_of_birth, CarType car_type, GearType gear_type, string school, string teacher, int lessons, Grade?status = null) { ID = iD; Last_name = string.Copy(last_name); First_name = string.Copy(first_name); Email = string.Copy(email); Gender = gender; Phone_number = string.Copy(phone_number); Address = address.Clone() as Address; Date_of_birth = date_of_birth; Car_type = car_type; Gear_type = gear_type; School = string.Copy(school); Teacher = string.Copy(teacher); Lessons = lessons; Status = status; }