Exemple #1
0
 public void RegisterHandler(OnTimeEventDelegate delegateToRun, TimeSpan onTime)
 {
     delegateOnTimeList.Add(new DelegateOnTime(delegateToRun, onTime, DateTime.Today.AddDays(-1)));
 }
Exemple #2
0
 public DelegateOnTime(OnTimeEventDelegate action, TimeSpan timeSpan, DateTime lastUse)
 {
     this.action = action;
     TimeSpan    = timeSpan;
     LastUse     = lastUse;
 }