Beispiel #1
0
 public static void addTimeWorkedToEmployee(Employee[] employeeArray, int employeeNumber, TimeStamp timeWorked)
 {
     for (int i = 0; i < employeeArray.Length; i++)
     {
         if (employeeArray[i] != null && employeeArray[i].Id == employeeNumber)
         {
             employeeArray[i].TimeStamp = TimeStamp.AddTwoTimeStamps(employeeArray[i].TimeStamp, timeWorked);
             break;
         }
     }
 }
Beispiel #2
0
 /* public Employee(int _id, string _firstName, string _lastName, double _hourlyWage)
  * {
  *   Id = _id;
  *   FirstName = _firstName;
  *   LastName = _lastName;
  *   HourlyWage = _hourlyWage;
  *
  *
  *
  * }*/
 public Employee(int _id, string _firstName, string _lastName, double _hourlyWage, TimeStamp _timeStamp)
 {
     Id         = _id;
     FirstName  = _firstName;
     LastName   = _lastName;
     HourlyWage = _hourlyWage;
     TimeStamp  = _timeStamp;
 }