prototype of electron host hook service and api implementation

This commit is contained in:
Gregor Biswanger
2019-01-05 02:17:31 +01:00
parent cad371c221
commit 63c2bcdf7c
46 changed files with 2875 additions and 504 deletions

View File

@@ -23,6 +23,10 @@ namespace ElectronNET.WebApp.Controllers
string[] files = await Electron.Dialog.ShowOpenDialogAsync(mainWindow, options);
Electron.IpcMain.Send(mainWindow, "select-directory-reply", files);
var result = await Electron.HostHook.CallAsync<string>("create-excel", files);
await Electron.Dialog.ShowMessageBoxAsync(result);
});
Electron.IpcMain.On("error-dialog", (args) =>