Exemplo n.º 1
0
        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
        }
Exemplo n.º 2
0
 public override bool ApplicationShouldHandleReopen(NSApplication sender, bool hasVisibleWindows)
 {
     WindowSidebar.ShowPopup();
     return(true);
 }