System.Timers
void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { Dispatcher.Invoke((Action)delegate() { if(Your Conditions) YourMethod(); }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)