/// <summary>An event handler called at the end of each day.</summary> /// <param name="sender">Event sender</param> /// <param name="e">Event arguments</param> private void OnDoReport(object sender, EventArgs e) { Clock clock = sender as Clock; if (DateUtilities.DatesAreEqual(dateString, clock.Today)) { report.DoOutput(); } }
private void OnDoReport(object sender, EventArgs e) { foreach (var dateString in dateStringsToReportOn) { if (DateUtilities.DatesAreEqual(dateString, clock.Today)) { DoOutput(); } } }