Jump to content


Check out our Community Blogs



Recent Status Updates

View All Updates

Developed by TechBiz Xccelerator
Photo
- - - - -

secondary thread

c#

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 alexandarx5

alexandarx5

    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 19 May 2016 - 10:26 AM

What should I do for my wpf grid to receive and handle data although notifications arrive from a secondary thread.



#2 pedro123

pedro123

    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 19 May 2016 - 11:27 AM

What should I do for my wpf grid to receive and handle data although notifications arrive from a secondary thread.

 

you asked a beautiful question I am quite comfortable with.  Anyway I use Dapfor grid running my program. This c# code will help you base on your question.

 

C#

 

System.Threading.Timer timer = new System.Threading.Timer(state =>

{

    Order order = _orders[random.Next(_orders.Count)];

    order.Price = random.Next(50, 200) + random.NextDouble();

}, null, 0, 500);