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
15 lines
342 B
C#
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; }
|
|
}
|
|
} |