Пример #1
0
 // end Move
 /// <summary>
 /// records an overtime entry in a specified time sheet
 /// </summary>
 /// <param name="timeSheet">the time sheet</param>
 /// <param name="hours">the number of hours to record</param>
 /// <param name="isWeekend">true if overtime worked at weekend - 
 /// weekend hours count as double time</param>
 public void RecordOvertime(TimeSheet timeSheet, int hours, 
     bool isWeekend)
 {
     // send message to time sheet object to ask it to
     // record information
     if (isWeekend)
     {
         timeSheet.AddEntry(name, hours * 2);
     }
     else
     {
         timeSheet.AddEntry(name, hours);
     }
 }