mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-13 12:18:08 +00:00
Implement HostHook logic to CLI and API. Implement an example in the Web-App.
This commit is contained in:
@@ -23,10 +23,6 @@ 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) =>
|
||||
|
||||
Reference in New Issue
Block a user