Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.controlStatsGrid = ((ShootingRange.classes.Menu.StatsGrid)(target));
                return;

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

            #line 263 "..\..\..\..\classes\Menu\StatsGrid.xaml"
                this.btnReturn.Click += new System.Windows.RoutedEventHandler(this.btnReturn_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;
        }