Beispiel #1
0
        private void initTaskCenterPanel()
        {
            string url = System.Windows.Forms.Application.StartupPath + "/task/Home.html";

            CefBrowserUserControl browser = new CefBrowserUserControl(url)
            {
                Dock = DockStyle.Fill
            };

            AppTabPage page = new AppTabPage()
            {
                Dock = DockStyle.Fill
            };

            page.Text = "任务中心";
            page.addCefBrowserUserControl(browser);

            this.moduleTabControl.Controls.Add(page);
        }
Beispiel #2
0
        public void addCefBrowserUserControl(CefBrowserUserControl browserUserControl)
        {
            this.Controls.Add(browserUserControl);

            this.Browser = browserUserControl.Browser;
        }