// Set the statistic variables to the correct values using the database access services public void SetStats() { TimeSpan time = _caseService.AverageTraceTimeLast28Days(); AverageTraceTimeLast28DaysString = GetTimeString(time); PercentageCasesReachedLast28Days = _caseService.PercentageCasesReachedLast28Days().ToString("0.0"); TotalCasesReached = _caseService.TotalCasesReached(); TotalCasesEver = _caseService.TotalCasesEver(); TotalContactsReached = _contactService.TotalContactsReached(); AverageContactsPerCaseLast28Days = _contactService.AverageContactsPerCaseLast28Days().ToString("0.0"); }