コード例 #1
0
ファイル: TabContent.cs プロジェクト: PIM4/integriert
        public TabContent(BrowserView browserView)
        {
            this.browserView = browserView;
            this.browser     = browserView.Browser;

            this.browser.FinishLoadingFrameEvent += delegate(object sender, FinishLoadingEventArgs e)
            {
                if (e.IsMainFrame)
                {
                    if (PropertyChangeEvent != null)
                    {
                        PropertyChangeEvent.Invoke("PageTitleChanged", null, browser.Title);
                    }
                }
            };

            this.browserContainer      = CreateBrowserContainer();
            this.browserContainer.Dock = DockStyle.Fill;


            this.toolBar          = CreateToolBar(browserView);
            this.toolBar.Dock     = DockStyle.Top;
            this.toolBar.AutoSize = true;

            this.ColumnCount = 1;
            this.Dock        = System.Windows.Forms.DockStyle.Fill;
            this.Location    = new System.Drawing.Point(0, 0);
            this.RowCount    = 2;
            this.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));


            this.Controls.Add(toolBar, 0, 0);
            this.Controls.Add(browserContainer, 0, 1);
        }
コード例 #2
0
            private void AddProperty(string root, string propertyID, bool settable)
            {
                var prop = new NodeProperty(root + propertyID, propertyID, settable);

                prop.ChangeEvent += (diff) => PropertyChangeEvent?.Invoke(this, diff);
                Properties.Add(prop);
            }
コード例 #3
0
        public TabContent(BrowserView browserView)
        {
            this.browserView = browserView;
            this.browser     = browserView.Browser;

            this.browser.FinishLoadingFrameEvent += delegate(object sender, FinishLoadingEventArgs e)
            {
                if (e.IsMainFrame)
                {
                    if (PropertyChangeEvent != null)
                    {
                        PropertyChangeEvent.Invoke("PageTitleChanged", null, browser.Title);
                    }
                }
            };

            browserContainer = CreateBrowserContainer();
            toolBar          = CreateToolBar(browserView);

            container = new DockPanel();
            container.Children.Add(browserContainer);
            container.Margin = new Thickness(0, 30, 0, 0);
            this.Children.Add(toolBar);
            this.Children.Add(container);
        }