c# - How to make my wpf app wait for 3 minutes before re-loading data? -


i using vs2010 - wpf - c#

in application fetch data web server , view on interface problem want keep fetching data , keep refreshing interface every 3 minutes don't know how that...

i tried (thread.sleep(18000)) , didn't work because interface wouldn't show @ all

i don't know how use timer such reason , couldn't find i'm looking elsewhere

please can me ?

best regards

what programming model? stock or more sane mvvm approach?

anyhow, use timer request callback after 3 minutes. in callback invoke dispatcher thread of window once got results of web service call. finished.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -