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

            #line 4 "..\..\..\MainWindow.xaml"
                this.window1.Closed += new System.EventHandler(this.closeIt);

            #line default
            #line hidden
                return;

            case 2:
                this.buttonLogin = ((System.Windows.Controls.Button)(target));

            #line 7 "..\..\..\MainWindow.xaml"
                this.buttonLogin.Click += new System.Windows.RoutedEventHandler(this.buttonLogin_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.user = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.pass = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 7:
                this.programmTitle = ((System.Windows.Controls.DataVisualization.Title)(target));
                return;

            case 8:
                this.textNewUser = ((System.Windows.Controls.TextBlock)(target));

            #line 13 "..\..\..\MainWindow.xaml"
                this.textNewUser.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.newUser);

            #line default
            #line hidden
                return;

            case 9:
                this.border1 = ((System.Windows.Controls.Border)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.window1 = ((AdventureWorksOrdersViewer.MainWindow)(target));
     
     #line 4 "..\..\..\MainWindow.xaml"
     this.window1.Closed += new System.EventHandler(this.closeIt);
     
     #line default
     #line hidden
     return;
     case 2:
     this.border1 = ((System.Windows.Controls.Border)(target));
     return;
     case 3:
     this.buttonLogin = ((System.Windows.Controls.Button)(target));
     
     #line 8 "..\..\..\MainWindow.xaml"
     this.buttonLogin.Click += new System.Windows.RoutedEventHandler(this.buttonLogin_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.user = ((System.Windows.Controls.TextBox)(target));
     return;
     case 5:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.pass = ((System.Windows.Controls.PasswordBox)(target));
     return;
     case 8:
     this.programmTitle = ((System.Windows.Controls.DataVisualization.Title)(target));
     return;
     case 9:
     this.textNewUser = ((System.Windows.Controls.TextBlock)(target));
     
     #line 14 "..\..\..\MainWindow.xaml"
     this.textNewUser.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.newUser);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }