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