예제 #1
0
        public static void ShowExampleForm()
        {
            var geometry = new GeometryPersistence("ExampleWindow", 800, 600);
            var start    = $"{WebHost}/Content/index.html";
            var window   = new BrowserWindow(start, geometry, Settings.AppDataFolder)
            {
                Title = "AppHostCefSharp"
            };

            Show(window);
        }
예제 #2
0
        public static void ShowExampleForm()
        {
            const string start    = "file:///Page.html";
            var          geometry = new GeometryPersistence("ExampleWindow", 800, 600);
            const string appData  = Settings.AppDataFolder;
            const string assembly = "AppHostCefSharp.WebBrowser.dll";
            const string title    = "AppHostCefSharp";
            var          window   = new BrowserWindow(start, geometry, appData, assembly)
            {
                Title = title
            };

            Show(window);
        }