Пример #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;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.windowMain = ((ShootingRange.MainWindow)(target));

            #line 15 "..\..\MainWindow.xaml"
                this.windowMain.KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                this.windowMain.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.grMain = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.grGame = ((System.Windows.Controls.Grid)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.grGame.MouseMove += new System.Windows.Input.MouseEventHandler(this.grGame_MouseMove);

            #line default
            #line hidden

            #line 25 "..\..\MainWindow.xaml"
                this.grGame.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.grGame_MouseRightButtonDown);

            #line default
            #line hidden

            #line 26 "..\..\MainWindow.xaml"
                this.grGame.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.grGame_MouseRightButtonUp);

            #line default
            #line hidden

            #line 27 "..\..\MainWindow.xaml"
                this.grGame.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.grGame_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 28 "..\..\MainWindow.xaml"
                this.grGame.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.grGame_IsVisibleChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.imgCharacterModel = ((System.Windows.Controls.Image)(target));

            #line 39 "..\..\MainWindow.xaml"
                this.imgCharacterModel.AddHandler(WpfAnimatedGif.ImageBehavior.AnimationCompletedEvent, new System.Windows.RoutedEventHandler(this.imgCharacterModel_AnimationCompleted));

            #line default
            #line hidden
                return;

            case 5:
                this.grPauseMenu = ((ShootingRange.classes.Menu.PauseMenuGrid)(target));
                return;

            case 6:
                this.dlgDefeat = ((ShootingRange.classes.Menu.ChoiceDialog)(target));
                return;

            case 7:
                this.dlgVictory = ((ShootingRange.classes.Menu.ChoiceDialog)(target));
                return;

            case 8:
                this.grStats = ((ShootingRange.classes.Menu.StatsGrid)(target));
                return;

            case 9:
                this.grMainMenu = ((ShootingRange.classes.Menu.MainMenuGrid)(target));
                return;

            case 10:
                this.grLoadScreen = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.img = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }