mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-08-11 10:39:42 +00:00
implement WindowManager, BrowserWindow-API and Menu-API
This commit is contained in:
@@ -258,9 +258,9 @@ namespace ElectronNET.API
|
||||
|
||||
private event Action<bool> _accessibilitySupportChanged;
|
||||
|
||||
private App() { }
|
||||
internal App() { }
|
||||
|
||||
public static App Instance
|
||||
internal static App Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -280,19 +280,6 @@ namespace ElectronNET.API
|
||||
ContractResolver = new CamelCasePropertyNamesContractResolver()
|
||||
};
|
||||
|
||||
// TODO: Auslagern in eigenes Window-Management
|
||||
public void OpenWindow(int width, int height, bool show)
|
||||
{
|
||||
var browserWindowOptions = new BrowserWindowOptions()
|
||||
{
|
||||
Height = height,
|
||||
Width = width,
|
||||
Show = show
|
||||
};
|
||||
|
||||
BridgeConnector.Socket.Emit("createBrowserWindow", JObject.FromObject(browserWindowOptions, _jsonSerializer));
|
||||
}
|
||||
|
||||
// TODO: Auslagern in eigenes Notification-API
|
||||
public void CreateNotification(NotificationOptions notificationOptions)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user