Beispiel #1
0
        /// <summary>
        /// Creates a new <see cref="Changelog"/> object, and adds the visible changelog widget to the provided
        /// parent container.
        /// </summary>
        /// <param name="parentContainer">The parent GTK container where the changelog should be added.</param>
        public Changelog(Container parentContainer)
        {
            if (!ChecksHandler.IsRunningOnUnix())
            {
                this.windowsBrowser = new WindowsBrowser(parentContainer);
                this.WidgetHandle   = windowsBrowser.WidgetHandle;

                this.windowsBrowser.browser.Navigating += OnWindowsBrowserNavigating;
            }
            else
            {
                this.unixBrowser  = new WebView();
                this.WidgetHandle = this.unixBrowser;
                this.unixBrowser.NavigationRequested += OnUnixBrowserNavigating;

                parentContainer.Add(WidgetHandle);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Changelog"/> class.
        /// </summary>
        /// <param name="parentContainer">The parent GTK container where the changelog should be added.</param>
        public Changelog(Container parentContainer)
        {
            if (!PlatformHelpers.IsRunningOnUnix())
            {
                this.WindowsBrowser = new WindowsBrowser(parentContainer);
                this.WidgetHandle   = this.WindowsBrowser.WidgetHandle;

                this.WindowsBrowser.Browser.Navigating += OnWindowsBrowserNavigating;
            }
            else
            {
                this.UnixBrowser  = new WebView();
                this.WidgetHandle = this.UnixBrowser;
                this.UnixBrowser.NavigationRequested += OnUnixBrowserNavigating;

                parentContainer.Add(this.WidgetHandle);
            }
        }