public void AddOrEditWatcherEntry(DateTime timestamp, WatcherChangeTypes changeType, string path) { long id = ComputeGroupId(timestamp); if (CurrentGroup == null || id != CurrentGroup.Id) { CurrentGroup = new WatcherEntryGroup(id, timestamp); if (!this.GroupDict.ContainsKey(id)) { GroupDict.Add(id, CurrentGroup); } } CurrentGroup.AddOrEditWatcherEntry(changeType, path); }