void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.restartButton = ((System.Windows.Controls.Button)(target)); return; case 2: this.solveButton = ((System.Windows.Controls.Button)(target)); return; case 3: this.menuButton = ((System.Windows.Controls.Button)(target)); #line 13 "..\..\..\Views\SinglePlayerGameMaze.xaml" this.menuButton.Click += new System.Windows.RoutedEventHandler(this.menuButton_Click); #line default #line hidden return; case 4: this.MazeBoard = ((SeperateUserControl.MazeGrid)(target)); return; } this._contentLoaded = true; }
public static void PlayerPosInit(DependencyObject d, DependencyPropertyChangedEventArgs e) { MazeGrid board = d as MazeGrid; board.HandlePlayerPosChanged(e.NewValue); }
public static void MazeStringInit(DependencyObject d, DependencyPropertyChangedEventArgs e) { MazeGrid board = d as MazeGrid; board.Draw(e.NewValue.ToString()); }