Esempio n. 1
0
 private void DateTimeProvider_ActualDateTimeReport(object sender, ActualDateTimeReportEventArgs e)
 {
     try
     {
         Invoke((Action)(() => { tsslDate.Text = e.DateTimeString; }));
     }
     catch
     {
         // Try ... catch block is needed because of form dispose could throw an exception here.
     }
 }
        protected virtual void OnDateTimeReport(DateTimeProvider sender, ActualDateTimeReportEventArgs e)
        {
            var handler = ActualDateTimeReport;

            handler?.Invoke(sender, e);
        }