private bool isActiveTimeLog(TimeLogEntry log) { TimeLoggingController tlc = TimeLoggingController.GetInstance(); return(tlc.IsTimerRunning() && tlc.GetActiveTimeLogEntryId().Equals(log.Id.ToString())); }