public static void CreateApp() { Stopwatch sw = new Stopwatch(); sw.Start(); #if WINDOWS AppWnd = new Window(); AppHost = new Host(AppWnd); AppHost.SetupPage("index.html"); AppWnd.Show(); #else AppWnd = new WindowSidebar(); AppHost = new Host(AppWnd); AppHost.SetupPage("index.html"); AppWnd.Show(false); WindowSidebar.ShowPopup(); #endif }
public override bool ApplicationShouldHandleReopen(NSApplication sender, bool hasVisibleWindows) { WindowSidebar.ShowPopup(); return(true); }