implement first demo app template

This commit is contained in:
Gregor Biswanger
2017-10-19 06:01:54 +02:00
parent 3cdf667457
commit 98fdb519a5
62 changed files with 1446 additions and 128 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using ElectronNET.API;
namespace ElectronNET.WebApp.Controllers
{
public class WindowsController : Controller
{
public IActionResult Index()
{
Electron.IpcMain.On("new-window", async (args) => {
await Electron.WindowManager.CreateWindowAsync();
});
return View();
}
}
}