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