add new powerMonitor API js file - fix formating

This commit is contained in:
Gregor Biswanger
2020-05-13 01:41:09 +02:00
parent 6690b4a76e
commit 14587463e7
8 changed files with 30 additions and 43 deletions

View File

@@ -1,6 +1,5 @@
using Microsoft.AspNetCore.Mvc;
using ElectronNET.API;
using ElectronNET.API.Entities;
using System;
namespace ElectronNET.WebApp.Controllers
@@ -13,15 +12,16 @@ namespace ElectronNET.WebApp.Controllers
{
Electron.PowerMonitor.OnLockScreen += () =>
{
Console.WriteLine("Screen Locked detected from C #");
Console.WriteLine("Screen Locked detected from C#");
};
Electron.PowerMonitor.OnUnLockScreen += () =>
{
Console.WriteLine("Screen unlocked detected from C # ");
Console.WriteLine("Screen unlocked detected from C# ");
};
}
return View();
return View();
}
}
}