From a technical point of view, you should separate the task from the inside of the event handler and have an event handler that calls the method containing the code you want to run, so you can call this code without disabling the event handler. However, if you want to programmatically disable the event handler:
KillZombies(this, new ElapsedEventArgs())
I will, however, break it as a commonly used best practice ...
Benalabaster
source share