void Application_Start(object sender, EventArgs e) {
// Code running at application startup
MT = new ();
= true;
= 1000;
+= new (MTimedEvent);
}
void MTimedEvent(object source, e) {
//Start work
StartWork();
}
void StartWork()
{
//The executed code is written here
}