Example #1
0
 private void TimeValueChange(TimeEntry original, TimeEntryEvent updated_event, DateTime updated_time)
 {
     Data.UpdateEntry(original.Id, updated_event, new DateTime(updated_time.Ticks, DateTimeKind.Local));
 }
Example #2
0
 private static Dictionary <DateTime, List <TimeEntry> > AggregateTimeEntries(Dictionary <DateTime, List <TimeEntry> > acc, TimeEntry entry)
 {
     if (acc.ContainsKey(entry.When.Date))
     {
         acc[entry.When.Date].Add(entry);
         acc[entry.When.Date].Sort((lhs, rhs) => lhs.When.CompareTo(rhs.When));
     }
     else
     {
         acc[entry.When.Date] = new List <TimeEntry> {
             entry
         };
     }
     return(acc);
 }
Example #3
0
 public void AddEntry(TimeEntry entry)
 {
     Data.AddEntry(entry);
 }