Example #1
0
        /// <summary>
        /// Shows a browser with documentation stored in the archive of this docpak exe.
        /// </summary>
        private void Show()
        {
            var app = new DocumentServer {
                Content = LoadCurrentArchive()
            };

            app.Init();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var webForm = new WebBrowserForm {
                Text = app.Content.Title
            };

            webForm.Browser.Navigate(app.Url + app.Content.DefaultHtmlFile);
            Application.Run(webForm);
        }
Example #2
0
        /// <summary>
        /// Shows a browser with documentation stored in the archive of this docpak exe.
        /// </summary>
        private void Show()
        {
            var app = new DocumentServer {Content = LoadCurrentArchive()};
            app.Init();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var webForm = new WebBrowserForm { Text = app.Content.Title };
            webForm.Browser.Navigate(app.Url + app.Content.DefaultHtmlFile);
            Application.Run(webForm);            
        }