ActivityMonitor.ActivityMonitor _am = neues ActivityMonitor.ActivityMonitor ();
_am.WarningMinutes = 0.9;
_am.MaxMinutesIdle = 1;
_am. Untätiges += neues EventHandler (am_Idle);
leeres am_Idle (Gegenstandabsender, EventArgs e)
{
Application.Exit ();
} |