mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-08-11 10:39:42 +00:00
implement first dialog-, notification-, tray- and menu-api functions
This commit is contained in:
@@ -10,11 +10,7 @@ namespace ElectronNET.WebApp.Controllers
|
||||
public IActionResult Index()
|
||||
{
|
||||
Electron.IpcMain.On("SayHello", (args) => {
|
||||
Electron.App.CreateNotification(new NotificationOptions
|
||||
{
|
||||
Title = "Hallo Robert",
|
||||
Body = "Nachricht von ASP.NET Core App"
|
||||
});
|
||||
Electron.Notification.Show(new NotificationOptions("Hallo Robert","Nachricht von ASP.NET Core App"));
|
||||
|
||||
Electron.IpcMain.Send("Goodbye", "Elephant!");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user