Exemplo n.º 1
0
 private void UpdateTimer_Tick(object sender, EventArgs e)
 {
     // increment day in outlook's calendar if we've crossed over into a new day
     if (DateTime.Now.Day != _previousDate.Day)
     {
         try
         {
             OutlookViewControl.GoToToday();
         }
         catch (Exception ex)
         {
             // no big deal if we can't set the day, just ignore and go on.
             Logger.Warn(ex, "Unable to go to today on calendar.");
         }
     }
     _previousDate = DateTime.Now;
 }
Exemplo n.º 2
0
 private void TodayButton_Click(object sender, EventArgs e)
 {
     OutlookViewControl.GoToToday();
 }