title: Adding delay in program C#
body: <p>In my <code>WP7</code> app, player draws a line and then CPU draws a line. I want CPU to wait for 5 sec before processing and drawing the line. I use this <code>System.Threading.Thread.Sleep(5000);</code>just after player is done drawing. But the player's line is not drawn completely and system goes to sleep and after 5 sec both lines are drawn. How to complete the player's line and then to start the delay ?</p>