summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/PowerService.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-09-22 17:09:04 +0100
committersr55 <[email protected]>2019-09-22 17:09:21 +0100
commit9552988c29ec0fff026528bb6501635783f5c22f (patch)
tree5c2eefeae4bd6fc5d04ff029b566a8ebbcee7cbc /win/CS/HandBrakeWPF/Services/PowerService.cs
parent63c732376f959699e0d199232dae8a08846f3595 (diff)
WinGui:
- Add a non-static wrapper around HbFunctions.cs - Add a Wrapper Provider that for now, returns only a direct in-process wrapper instance for libhb HbFunctions calls. - Update all calls to use the new non-static wrapper provider / interface
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/PowerService.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/PowerService.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/win/CS/HandBrakeWPF/Services/PowerService.cs b/win/CS/HandBrakeWPF/Services/PowerService.cs
index 9239a2cd2..e73027f57 100644
--- a/win/CS/HandBrakeWPF/Services/PowerService.cs
+++ b/win/CS/HandBrakeWPF/Services/PowerService.cs
@@ -3,11 +3,10 @@
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
-// The Error Service
+// The Power Service
// </summary>
// --------------------------------------------------------------------------------------------------------------------
-
namespace HandBrakeWPF.Services
{
using System;
@@ -17,7 +16,6 @@ namespace HandBrakeWPF.Services
{
private void GetPowerState()
{
-
System.Management.ObjectQuery query = new ObjectQuery("Select * FROM Win32_Battery");
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
@@ -30,7 +28,6 @@ namespace HandBrakeWPF.Services
Console.WriteLine("Property {0}: Value is {1}", property.Name, property.Value);
}
}
-
}
}
}