private void TimeValueChange(TimeEntry original, TimeEntryEvent updated_event, DateTime updated_time) { Data.UpdateEntry(original.Id, updated_event, new DateTime(updated_time.Ticks, DateTimeKind.Local)); }
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); }
public void AddEntry(TimeEntry entry) { Data.AddEntry(entry); }