mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-12 13:44:34 +00:00
23 lines
493 B
C#
23 lines
493 B
C#
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();
|
|
}
|
|
}
|
|
} |