예제 #1
0
 //Constructors
 public Person(string id, string lastName, string firstName, MyDate dateOfBirth,
               GenderEnum gender, string phoneNumber, AddressStruct address, string emailAddress)
 {
     Id           = id;
     LastName     = lastName;
     FirstName    = firstName;
     DateOfBirth  = dateOfBirth;
     Gender       = gender;
     PhoneNumber  = phoneNumber;
     Address      = address;
     EmailAddress = emailAddress;
 }
예제 #2
0
 //Constructors
 public Trainee(string id, string lastName, string firstName, MyDate dateOfBirth, GenderEnum gender,
                string phoneNumber, AddressStruct address, string emailAddress, CarTypeEnum carType,
                GearTypeEnum gearType, DrivingSchool drivingSchool, string drivingTeacher,
                int drivingLessonsCount)
     : base(id, lastName, firstName, dateOfBirth, gender, phoneNumber, address, emailAddress)
 {
     CarType  = carType;
     GearType = gearType;
     FullDrivingSchoolDetails = drivingSchool;
     DrivingSchoolTeacher     = drivingTeacher;
     DrivingLessonsCount      = drivingLessonsCount;
     OwnedLisences            = new List <Lisence>();
     ScheduleList             = new List <ScheduleStruct>();
 }
예제 #3
0
 //Constructors
 public Test(int testId, string testerId, string traineeId, DateTime testDateAndTime,
             AddressStruct testLocation, string testerNotes, CarTypeEnum carType,
             DrivingSchool drivingSchool, string dmv)
 {
     TestId          = testId;
     TesterId        = testerId;
     TraineeId       = traineeId;
     TestDateAndTime = testDateAndTime;
     TestLocation    = testLocation;
     TesterNotes     = testerNotes;
     IsPassed        = null;
     CarType         = carType;
     DrivingSchool   = drivingSchool;
     DMV             = dmv;
 }
예제 #4
0
        //Constructors
        public Tester(string id, string lastName, string firstName, MyDate dateOfBirth,
                      GenderEnum gender, string phoneNumber, AddressStruct address,
                      string emailAddress, int yearsOfExperience, int maximalWeeklylTests,
                      CarTypeEnum carType, bool[,] workTime, int maximalDistance,
                      int weeklyTestsCount, List <ScheduleStruct> scheduleList)
            : base(id, lastName, firstName, dateOfBirth, gender, phoneNumber, address, emailAddress)
        {
            YearsOfExperience  = yearsOfExperience;
            MaximalWeeklyTests = maximalWeeklylTests;
            CarType            = carType;
            WorkTime           = workTime;
            MaximalDistance    = maximalDistance;
            WeeklyTestsCount   = 0;

            foreach (ScheduleStruct schedule in scheduleList)
            {
                ScheduleList.Add(schedule);
            }
        }
예제 #5
0
 //Constructors
 public DistanceStruct(AddressStruct originAddress, AddressStruct destinationAddress, double distance)
 {
     OriginAddress      = originAddress;
     DestinationAddress = destinationAddress;
     Distance           = distance;
 }