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