Example #1
0
 private void SystemPowerInformation_Click(object sender, EventArgs e)
 {
     try {
         var state = _manager.GetSystemPowerInformation();
         Output.Text = $"The current idle level - {state.Idleness}%";
     }
     catch (Win32Exception exception) {
         Output.Text = exception.Message;
     }
 }