Occurs when the application finishes processing and is about to enter the idle state.
If you have tasks that you must perform before the thread becomes idle, attach them to this event.
Because this is a static event, you must detach your event handlers when your application is disposed, or memory leaks will result.