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 void DidResignActive(NSNotification notification) { WindowSidebar.HidePopup(); }
public override bool ApplicationShouldHandleReopen(NSApplication sender, bool hasVisibleWindows) { WindowSidebar.ShowPopup(); return(true); }
public SidebarEntry(WindowSidebar windowSidebar, Type nodeType) : base(windowSidebar) { NodeType = nodeType; TextLabel = Add.Label(Utils.GetLibraryName(nodeType), "entry"); }