Esempio n. 1
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.HAPExplorerWindow = (Window1)target;
                return;

            case 2:
                this.mnuOpenFile        = (MenuItem)target;
                this.mnuOpenFile.Click += new RoutedEventHandler(this.mnuOpenFile_Click);
                return;

            case 3:
                this.mnuOpenUrl        = (MenuItem)target;
                this.mnuOpenUrl.Click += new RoutedEventHandler(this.mnuOpenUrl_Click);
                return;

            case 4:
                this.mnuExit        = (MenuItem)target;
                this.mnuExit.Click += new RoutedEventHandler(this.mnuExit_Click);
                return;

            case 5:
                this.txtHtml = (TextBox)target;
                return;

            case 6:
                this.btnParse        = (Button)target;
                this.btnParse.Click += new RoutedEventHandler(this.btnParse_Click);
                return;

            case 7:
                this.btnTestCode        = (Button)target;
                this.btnTestCode.Click += new RoutedEventHandler(this.btnTestCode_Click);
                return;

            case 8:
                this.txtSearchTag = (TextBox)target;
                return;

            case 9:
                this.btnSearch        = (Button)target;
                this.btnSearch.Click += new RoutedEventHandler(this.btnSearch_Click);
                return;

            case 10:
                this.chkFromCurrent = (CheckBox)target;
                return;

            case 11:
                this.chkXPath = (CheckBox)target;
                return;

            case 12:
                this.tabControl1 = (TabControl)target;
                return;

            case 13:
                this.tabNodeTree = (TabItem)target;
                return;

            case 14:
                this.HtmlNodeViewer1 = (HtmlNodeViewer)target;
                return;

            case 15:
                this.HtmlAttributeViewer1 = (HtmlAttributeViewer)target;
                return;

            case 0x10:
                this.gridSplitter1 = (GridSplitter)target;
                return;

            case 0x11:
                this.hapTree = (NodeTreeView)target;
                return;

            case 0x12:
                this.tabSearchResults = (TabItem)target;
                return;

            case 0x13:
                this.listResults = (ListBox)target;
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.HAPExplorerWindow = ((HAPExplorer.Window1)(target));
                return;

            case 2:
                this.mnuOpenFile = ((System.Windows.Controls.MenuItem)(target));

            #line 18 "..\..\Window1.xaml"
                this.mnuOpenFile.Click += new System.Windows.RoutedEventHandler(this.mnuOpenFile_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.mnuOpenUrl = ((System.Windows.Controls.MenuItem)(target));

            #line 19 "..\..\Window1.xaml"
                this.mnuOpenUrl.Click += new System.Windows.RoutedEventHandler(this.mnuOpenUrl_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.mnuExit = ((System.Windows.Controls.MenuItem)(target));

            #line 21 "..\..\Window1.xaml"
                this.mnuExit.Click += new System.Windows.RoutedEventHandler(this.mnuExit_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.txtHtml = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.btnParse = ((System.Windows.Controls.Button)(target));

            #line 26 "..\..\Window1.xaml"
                this.btnParse.Click += new System.Windows.RoutedEventHandler(this.btnParse_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnTestCode = ((System.Windows.Controls.Button)(target));

            #line 27 "..\..\Window1.xaml"
                this.btnTestCode.Click += new System.Windows.RoutedEventHandler(this.btnTestCode_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.txtSearchTag = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.btnSearch = ((System.Windows.Controls.Button)(target));

            #line 30 "..\..\Window1.xaml"
                this.btnSearch.Click += new System.Windows.RoutedEventHandler(this.btnSearch_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.chkFromCurrent = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 11:
                this.chkXPath = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 12:
                this.tabControl1 = ((System.Windows.Controls.TabControl)(target));
                return;

            case 13:
                this.tabNodeTree = ((System.Windows.Controls.TabItem)(target));
                return;

            case 14:
                this.HtmlNodeViewer1 = ((HAPExplorer.HtmlNodeViewer)(target));
                return;

            case 15:
                this.HtmlAttributeViewer1 = ((HAPExplorer.HtmlAttributeViewer)(target));
                return;

            case 16:
                this.gridSplitter1 = ((System.Windows.Controls.GridSplitter)(target));
                return;

            case 17:
                this.hapTree = ((HAPExplorer.NodeTreeView)(target));
                return;

            case 18:
                this.tabSearchResults = ((System.Windows.Controls.TabItem)(target));
                return;

            case 19:
                this.listResults = ((System.Windows.Controls.ListBox)(target));
                return;
            }
            this._contentLoaded = true;
        }