private void AllowSystemStandBy() { PreventSystemStandByCounter -= 1; if (PreventSystemStandByCounter == 0) { PowerManagement.AllowSystemStandBy(); } }