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