Exemplo n.º 1
0
        protected virtual void RaiseTimerEvent(TimerEventArgs e)
        {
            TimerEventHandler handler = TimerEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 2
0
 public void OutsideFunctionWrapper(object sender, TimerEventArgs e)
 {
     this.customFunc(e.outputString);
 }
Exemplo n.º 3
0
 public EventTimer(EventPublisher publisher, TimerFunc pTimerFunc, TimerEventArgs pEventArgs)
 {
     this.EventArgs        = pEventArgs;
     this.customFunc       = pTimerFunc;
     publisher.TimerEvent += OutsideFunctionWrapper;
 }
Exemplo n.º 4
0
 public void Start(TimerEventArgs e)
 {
     RaiseTimerEvent(e);
 }