public void IdleReset() { idleReason = IdleReason.NoIdle; System.Windows.Forms.Application.Idle -= new EventHandler(application_Idle); }