public static void Invoke(this TimerBuilder.WithTimerBuilder e, DispatcherTimer t) { if (e.Tick != null) { e.Tick(t); } if (e.ContextOfWithBuilder != null) { e.ContextOfWithBuilder.Invoke(); } }
public static DispatcherTimer Start(this TimerBuilder.WithTimerBuilder context) { return(context.GetInterval().AtIntervalWithTimer(context.Invoke)); }