private int GetTimeEntryIndex (TimeEntryData dataObject)
 {
     int count = 0;
     foreach (var grp in dateGroups) {
         count++;
         // Iterate by entry list.
         foreach (var obj in grp.DataObjects) {
             if (dataObject.Matches (obj)) {
                 return count;
             }
             count++;
         }
     }
     return -1;
 }
        private bool FindExistingEntry (TimeEntryData dataObject, out DateGroup dateGroup, out TimeEntryData existingDataObject)
        {
            foreach (var grp in dateGroups) {
                foreach (var obj in grp.TimeEntryList) {
                    if (dataObject.Matches (obj)) {
                        dateGroup = grp;
                        existingDataObject = obj;
                        return true;
                    }
                }
            }

            dateGroup = null;
            existingDataObject = null;
            return false;
        }