How to raise only 1 Timer event in C#? -


How do I get a timer event to set fire to a bar? For example, I have a timer that increases the event every 10 minutes takes 10 or more minutes to execute the event to be raised. I have to reset the timer after the event has ended. In other words, I do not want to extend more than 1 incident of incident at any one time.

What I usually do, my event raises the timer when it wakes up and then the event Restart the timer when the process is complete:

  Private zero timer handler (object sender, timer AppleAut ARGS E) {Timer timer = (timer) this; Timer.Stop (); RunProcess (); Timer.start (); } Public Zero Run Process () {/ * Content that takes longer than my timer interval * /}  

Now my timer will resume when the process is completed

< / Div>

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -