Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.dp = ((CustomControlLibrary.DataPager)(target));

            #line 9 "..\..\..\Controls\DataPager.xaml"
                this.dp.Loaded += new System.Windows.RoutedEventHandler(this.DataPager_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.cboPageSize = ((System.Windows.Controls.ComboBox)(target));

            #line 26 "..\..\..\Controls\DataPager.xaml"
                this.cboPageSize.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbpPageSize_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.btnFirst = ((CustomControlLibrary.ImageButton)(target));
                return;

            case 4:
                this.btnPrev = ((CustomControlLibrary.ImageButton)(target));
                return;

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

            #line 37 "..\..\..\Controls\DataPager.xaml"
                this.tbPageIndex.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.tbPageIndex_PreviewKeyDown);

            #line default
            #line hidden

            #line 37 "..\..\..\Controls\DataPager.xaml"
                this.tbPageIndex.LostFocus += new System.Windows.RoutedEventHandler(this.tbPageIndex_LostFocus);

            #line default
            #line hidden
                return;

            case 6:
                this.btnNext = ((CustomControlLibrary.ImageButton)(target));
                return;

            case 7:
                this.btnLast = ((CustomControlLibrary.ImageButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.self = ((WpfApplication.MainWindow)(target));
                return;

            case 2:
                this.dataPager = ((CustomControlLibrary.DataPager)(target));

            #line 22 "..\..\..\MainWindow.xaml"
                this.dataPager.PageChanged += new CustomControlLibrary.DataPager.PageChangedEventHandler(this.dataPager_PageChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }