Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Window"/> class.
        /// </summary>
        /// <param name="application">
        /// The application.
        /// </param>
        /// <param name="hostConfig">
        /// The host config.
        /// </param>
        public Window(HostBase application, ChromelyConfiguration hostConfig)
            : base(hostConfig.HostTitle, hostConfig.HostWidth, hostConfig.HostHeight, hostConfig.HostIconFile)
        {
            this.mHostConfig    = hostConfig;
            this.mCore          = new CefGlueBrowser(this, new CefBrowserSettings(), hostConfig.StartUrl);
            this.mCore.Created += this.BrowserCreated;
            this.mApplication   = application;

            this.ShowWindow();
        }
Esempio n. 2
0
        public Window(HostBase application, ChromelyConfiguration hostConfig)
            : base(hostConfig.HostTitle, hostConfig.HostWidth, hostConfig.HostHeight, hostConfig.HostIconFile)
        {
            m_hostConfig    = hostConfig;
            m_core          = new CefGlueBrowser(this, new CefBrowserSettings(), hostConfig.StartUrl);
            m_core.Created += new EventHandler(BrowserCreated);
            m_application   = application;

            ShowWindow();
        }