コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TestWindow = ((Lab1Nuradinov.MainWindow)(target));

            #line 10 "..\..\MainWindow.xaml"
                this.TestWindow.Loaded += new System.Windows.RoutedEventHandler(this.WindowLoaded);

            #line default
            #line hidden
                return;

            case 2:
                this.data = ((System.Windows.Controls.DataGrid)(target));

            #line 13 "..\..\MainWindow.xaml"
                this.data.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.data_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:

            #line 19 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Update);

            #line default
            #line hidden
                return;

            case 4:

            #line 21 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NextPage);

            #line default
            #line hidden
                return;

            case 5:

            #line 22 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PreviousPage);

            #line default
            #line hidden
                return;

            case 6:
                this.PageNumber = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TestWindow = ((Lab1Nuradinov.MainWindow)(target));

            #line 10 "..\..\MainWindow.xaml"
                this.TestWindow.Loaded += new System.Windows.RoutedEventHandler(this.WindowLoaded);

            #line default
            #line hidden
                return;

            case 2:
                this.data = ((System.Windows.Controls.DataGrid)(target));

            #line 13 "..\..\MainWindow.xaml"
                this.data.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.data_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.updateButton = ((System.Windows.Controls.Button)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.updateButton.Click += new System.Windows.RoutedEventHandler(this.Update);

            #line default
            #line hidden
                return;

            case 4:
                this.saveButton = ((System.Windows.Controls.Button)(target));

            #line 20 "..\..\MainWindow.xaml"
                this.saveButton.Click += new System.Windows.RoutedEventHandler(this.saveButtonClick);

            #line default
            #line hidden
                return;

            case 5:
                this.nextPageButton = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.nextPageButton.Click += new System.Windows.RoutedEventHandler(this.NextPage);

            #line default
            #line hidden
                return;

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

            #line 22 "..\..\MainWindow.xaml"
                this.prevPageButton.Click += new System.Windows.RoutedEventHandler(this.PreviousPage);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\MainWindow.xaml"
                this.backComplexButton.Click += new System.Windows.RoutedEventHandler(this.BackComplexButtonPressed);

            #line default
            #line hidden
                return;

            case 8:
                this.Page = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.listOfUpdatedThreats = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.PageNumber = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }