Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\SingleGame\SinglePlayer.xaml"
                ((MazeGUI.SingleGame.SinglePlayer)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden
                return;

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

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

            case 4:
                this.btnReset = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\..\SingleGame\SinglePlayer.xaml"
                this.btnReset.Click += new System.Windows.RoutedEventHandler(this.btnReset_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnSolve = ((System.Windows.Controls.Button)(target));

            #line 23 "..\..\..\SingleGame\SinglePlayer.xaml"
                this.btnSolve.Click += new System.Windows.RoutedEventHandler(this.btnSolve_Click);

            #line default
            #line hidden
                return;

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

            #line 24 "..\..\..\SingleGame\SinglePlayer.xaml"
                this.btnMenu.Click += new System.Windows.RoutedEventHandler(this.btnMenu_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.mazeBoard = ((MazeGUI.Controls.MazeBoard)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btnMainMenu = ((System.Windows.Controls.Button)(target));
                return;

            case 2:
                this.mazeBoard1 = ((MazeGUI.Controls.MazeBoard)(target));
                return;

            case 3:
                this.mazeBoard2 = ((MazeGUI.Controls.MazeBoard)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\MultiGame\MultiPlayer.xaml"
                ((MazeGUI.MultiGame.MultiPlayer)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden

            #line 8 "..\..\..\MultiGame\MultiPlayer.xaml"
                ((MazeGUI.MultiGame.MultiPlayer)(target)).Closed += new System.EventHandler(this.closeWin);

            #line default
            #line hidden
                return;

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

            #line 19 "..\..\..\MultiGame\MultiPlayer.xaml"
                this.btnMainMenu.Click += new System.Windows.RoutedEventHandler(this.btnMainMenu_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.myBoard = ((MazeGUI.Controls.MazeBoard)(target));
                return;

            case 4:
                this.opponentBoard = ((MazeGUI.Controls.MazeBoard)(target));
                return;
            }
            this._contentLoaded = true;
        }
        /// <summary>
        /// Handles the <see cref="E:GoalPosPropertyChanged" /> event.
        /// </summary>
        /// <param name="d">The d.</param>
        /// <param name="e">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void OnGoalPosPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MazeBoard board = (MazeBoard)d;

            board.OnGoalPosPropertyChanged();
        }
        /// <summary>
        /// Handles the <see cref="E:PlayerImageFilePropertyChanged" /> event.
        /// </summary>
        /// <param name="d">The d.</param>
        /// <param name="e">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void OnPlayerImageFilePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MazeBoard board = (MazeBoard)d;

            board.OnPlayerImageFilePropertyChanged();
        }