Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.addNewPlayerWindow = ((PlayersMVVM.AddPlayer.WindowAddPlayer)(target));
                return;

            case 2:
                this.newPlayerFirstNameTbwep = ((PlayersMVVM.TbWithErrorProvider.TextBoxWithErrorProvider)(target));
                return;

            case 3:
                this.newPlayerLastNameTbwep = ((PlayersMVVM.TbWithErrorProvider.TextBoxWithErrorProvider)(target));
                return;

            case 4:
                this.comboBoxRangeOfAge = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.sliderWeight = ((System.Windows.Controls.Slider)(target));
                return;

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

            #line 49 "..\..\..\AddPlayer\WindowAddPlayer.xaml"
                this.addButton.Click += new System.Windows.RoutedEventHandler(this.addButton_Click);

            #line default
            #line hidden
                return;

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

            #line 57 "..\..\..\AddPlayer\WindowAddPlayer.xaml"
                this.cancelButton.Click += new System.Windows.RoutedEventHandler(this.cancelButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gridInfoPlayer = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.firstNameTbwep = ((PlayersMVVM.TbWithErrorProvider.TextBoxWithErrorProvider)(target));
                return;

            case 3:
                this.lastNameTbwep = ((PlayersMVVM.TbWithErrorProvider.TextBoxWithErrorProvider)(target));
                return;

            case 4:
                this.sliderWeight = ((System.Windows.Controls.Slider)(target));
                return;
            }
            this._contentLoaded = true;
        }