I was starting a timer with a code sample per below in State.Configure. It worked fine. I noticed some of the references examples (for example TriggerCustomEvent) show a timer being started/configured in State.DataLoaded instead. This also made a little more sense for my purpose, so I did the same. Same code. Just moved it to State.Dataloaded. The issue is that, although that code runs and the print verifies the timer was enabled, the timer never runs. If I move the same code block back up to State.Configure, it works fine again.
Curious as to what the reason for this is?
Code sample
// Adds the event and the event handler for the meth od that will // process the timer event to the timer. myTimer.Tick += new EventHandl er(TimerEventProcessor); // Sets the timer interval to X milliseconds. myTimer.Interval = 500; // ms myTimer.Enabled = true; //myTimer.Start(); PPrint("BA Timer started with " + myTimer.Interval.ToString() +"ms");
Comment