Exemplo n.º 1
0
        /// <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();
            }
        }
Exemplo n.º 2
0
 private void OnDoReport(object sender, EventArgs e)
 {
     foreach (var dateString in dateStringsToReportOn)
     {
         if (DateUtilities.DatesAreEqual(dateString, clock.Today))
         {
             DoOutput();
         }
     }
 }