FlexitimeTracker/DataCenter_Windows/WindowsDataCenter/Interfaces/DailyLogs.cs
Chris.Watts90@outlook.com 69aaf53bb4 Added method to calculate the daily logs.
extended TimeLogList object:
 > to group logs into days with the "DailyLogs" object
 > to calculate the WeeklyTotal hours automatically based on the TimeLogs.DailyLogs object for each day.

Created DailyLogs object:
 > holds the number of entries for a day.
 > holds the time "in"/"at work" for that day (dailytotal).

#15
2017-02-14 17:06:16 +00:00

15 lines
342 B
C#

using System.Collections.Generic;
namespace Interfaces
{
public class DailyLogs
{
public DailyLogs()
{
Logs = new List<TimeLog>();
}
public int LogCount { get { return Logs.Count; } }
public double DailyTotal { get; set; }
public List<TimeLog> Logs { get; set; }
}
}