private Break[] GetBreakArrayFromSettings()
        {
            Break breakfastBreak = new Break("Breakfast Break", Settings.Default.BreakfastStart, Settings.Default.BreakfastEnd);
            Break lunchBreak = new Break("Lunch Break", Settings.Default.LunchStart, Settings.Default.LunchEnd);

            return new Break[] { breakfastBreak, lunchBreak };
        }
 public BreakStartedEventArgs(Break breakData)
     : base(breakData)
 {
 }
 public BreakBaseEventArgs(Break breakData)
 {
     this.timestamp = DateTime.Now;
     this.breakData = breakData;
 }
 public BreakEndedEventArgs(Break breakData)
     : base(breakData)
 {
 }
 //-----------------------------------------
 public TimeObserverData(TimeSpan startWorkingTime, Break[] breaks)
     : this(startWorkingTime)
 {
     this.breaksList = new List<Break>();
     this.breaksList.AddRange(breaks);
     TimeSpan overallBreaksDuration = new TimeSpan();
     this.breaksList.ForEach(
         delegate(Break b)
         {
             overallBreaksDuration += b.Duration;
         });
     this.scheduledFinishWorkingTime = this.startWorkingTime + this.dailyWorkingHours + overallBreaksDuration;
 }