implement the first App-API Events

This commit is contained in:
Gregor Biswanger
2017-10-14 19:57:49 +02:00
parent 9abece156f
commit 90d0cc6189
6 changed files with 363 additions and 11 deletions

View File

@@ -21,15 +21,7 @@ namespace ElectronNET.WebApp.Controllers
Electron.IpcMain.On("GetPath", async (args) =>
{
string pathName = await Electron.App.GetPathAsync(PathName.pictures);
//App.IpcMain.Send("GetPathComplete", pathName);
var result = await Electron.App.GetPathAsync(PathName.exe);
//var imagePath = Path.Combine(result, "Electron.png");
Electron.IpcMain.Send("GetPathComplete", result);
//var image = await App.GetFileIconAsync(result);
Electron.IpcMain.Send("GetPathComplete", pathName);
});
return View();