Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.controlMainMenu = ((ShootingRange.classes.Menu.MainMenuGrid)(target));

            #line 11 "..\..\..\..\classes\Menu\MainMenuGrid.xaml"
                this.controlMainMenu.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.controlMainMenu_IsVisibleChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.btnLvlChoose = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 3:
                this.btnStats = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 4:
                this.btnControl = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 5:

            #line 81 "..\..\..\..\classes\Menu\MainMenuGrid.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnNext_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 88 "..\..\..\..\classes\Menu\MainMenuGrid.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnPrev_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.lvlPreview = ((ShootingRange.classes.Menu.LvlPreview)(target));
                return;

            case 8:

            #line 540 "..\..\..\..\classes\Menu\MainMenuGrid.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnExit_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.controlLvlPreview = ((ShootingRange.classes.Menu.LvlPreview)(target));

            #line 10 "..\..\..\..\classes\Menu\LvlPreview.xaml"
                this.controlLvlPreview.MouseEnter += new System.Windows.Input.MouseEventHandler(this.UserControl_MouseEnter);

            #line default
            #line hidden

            #line 11 "..\..\..\..\classes\Menu\LvlPreview.xaml"
                this.controlLvlPreview.MouseLeave += new System.Windows.Input.MouseEventHandler(this.controlLvlPreview_MouseLeave);

            #line default
            #line hidden
                return;

            case 2:
                this.imgLvl = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.rctDark = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

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

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

            #line 69 "..\..\..\..\classes\Menu\LvlPreview.xaml"
                this.btnStart.Click += new System.Windows.RoutedEventHandler(this.lvlPreview_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.controlMainMenu = ((ShootingRange.classes.Menu.MainMenu)(target));
                return;

            case 2:
                this.btnLvlChoose = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 3:

            #line 68 "..\..\..\..\classes\Menu\MainMenu.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnNext_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 75 "..\..\..\..\classes\Menu\MainMenu.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnPrev_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.lvlPreview = ((ShootingRange.classes.Menu.LvlPreview)(target));
                return;
            }
            this._contentLoaded = true;
        }