Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Mathketball = ((MathGame.MainWindow)(target));
                return;

            case 2:
                this.TbuserName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.label = ((System.Windows.Controls.Label)(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.TbAge = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.RbAddition = ((System.Windows.Controls.RadioButton)(target));

            #line 22 "..\..\MainWindow.xaml"
                this.RbAddition.Checked += new System.Windows.RoutedEventHandler(this.RbAddition_Checked);

            #line default
            #line hidden
                return;

            case 8:
                this.RbSubtraction = ((System.Windows.Controls.RadioButton)(target));

            #line 23 "..\..\MainWindow.xaml"
                this.RbSubtraction.Checked += new System.Windows.RoutedEventHandler(this.RbSubtraction_Checked);

            #line default
            #line hidden
                return;

            case 9:
                this.RbMultiplication = ((System.Windows.Controls.RadioButton)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.RbMultiplication.Checked += new System.Windows.RoutedEventHandler(this.RbMultiplication_Checked);

            #line default
            #line hidden
                return;

            case 10:
                this.RbDivision = ((System.Windows.Controls.RadioButton)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.RbDivision.Checked += new System.Windows.RoutedEventHandler(this.RbDivision_Checked);

            #line default
            #line hidden
                return;

            case 11:
                this.BtStartGame = ((System.Windows.Controls.Button)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.BtStartGame.Click += new System.Windows.RoutedEventHandler(this.BtStartGame_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.LbError = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }