How I can set DispatcherTimer into the for loop.
- by Jitendra Jadav
Hello guys,
I am using wpf DispatcherTimer and I want ot use it into the for loop how i can use it..
my code is here..
DispatcherTimer timer = new DispatcherTimer();
timer.Tick += (s, e) =>
{
for (i = 0; i < 10; i++)
{
obsValue.Add(new Entities(i));
timer.Interval = TimeSpan.FromSeconds(30);
timer.Start();
}
};
Thanks....