diff --git a/BatteryWidget/Battery.cs b/BatteryWidget/Battery.cs
new file mode 100644
index 0000000..d2e92b9
--- /dev/null
+++ b/BatteryWidget/Battery.cs
@@ -0,0 +1,15 @@
+using System.Windows.Forms;
+
+namespace BatteryWidget {
+
+ public class Battery {
+
+ public static int getBatteryPercentage() {
+ return (int) (SystemInformation.PowerStatus.BatteryLifePercent * 100);
+ }
+
+ public static bool isBatteryPowerOn() {
+ return (SystemInformation.PowerStatus.PowerLineStatus == PowerLineStatus.Online);
+ }
+ }
+}
\ No newline at end of file
diff --git a/BatteryWidget/BatteryWidget.csproj b/BatteryWidget/BatteryWidget.csproj
index be2981a..a09e55e 100644
--- a/BatteryWidget/BatteryWidget.csproj
+++ b/BatteryWidget/BatteryWidget.csproj
@@ -40,6 +40,7 @@
+
Form