void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.playedCardOne = ((CardLib.CardControl)(target)); return; case 2: this.playedCardTwo = ((CardLib.CardControl)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.pgGamePlay = ((DurakCardDemo.Pages.GamePlay)(target)); #line 9 "..\..\..\Pages\GamePlay.xaml" this.pgGamePlay.Loaded += new System.Windows.RoutedEventHandler(this.pgGamePlay_Loaded); #line default #line hidden return; case 2: this.cvsPlayingScreen = ((System.Windows.Controls.Canvas)(target)); #line 18 "..\..\..\Pages\GamePlay.xaml" this.cvsPlayingScreen.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MyCanvas_PreviewMouseLeftButtonDown); #line default #line hidden #line 18 "..\..\..\Pages\GamePlay.xaml" this.cvsPlayingScreen.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MyCanvas_PreviewMouseLeftButtonUp); #line default #line hidden #line 18 "..\..\..\Pages\GamePlay.xaml" this.cvsPlayingScreen.MouseMove += new System.Windows.Input.MouseEventHandler(this.MyCanvas_PreviewMouseMove); #line default #line hidden return; case 3: this.lblStatus = ((System.Windows.Controls.Label)(target)); return; case 4: this.lblTrump = ((System.Windows.Controls.Label)(target)); return; case 5: this.btnAddCard = ((System.Windows.Controls.Button)(target)); #line 24 "..\..\..\Pages\GamePlay.xaml" this.btnAddCard.Click += new System.Windows.RoutedEventHandler(this.btnAddCard_Click); #line default #line hidden return; case 6: this.btnAddAiCard = ((System.Windows.Controls.Button)(target)); #line 25 "..\..\..\Pages\GamePlay.xaml" this.btnAddAiCard.Click += new System.Windows.RoutedEventHandler(this.btnAddAiCard_Click); #line default #line hidden return; case 7: this.brdAiHand = ((System.Windows.Controls.Border)(target)); return; case 8: this.dkAIHand = ((System.Windows.Controls.DockPanel)(target)); return; case 9: this.aiStack = ((System.Windows.Controls.ItemsControl)(target)); return; case 11: this.dplBoardLayer = ((System.Windows.Controls.DockPanel)(target)); return; case 12: this.stckBoard = ((System.Windows.Controls.StackPanel)(target)); return; case 13: this.stkOne = ((System.Windows.Controls.StackPanel)(target)); return; case 14: this.stkTwo = ((System.Windows.Controls.StackPanel)(target)); return; case 15: this.brdPlayerHand = ((System.Windows.Controls.Border)(target)); return; case 16: this.dkHand = ((System.Windows.Controls.DockPanel)(target)); return; case 17: this.tStack = ((System.Windows.Controls.ItemsControl)(target)); #line 88 "..\..\..\Pages\GamePlay.xaml" this.tStack.SourceUpdated += new System.EventHandler <System.Windows.Data.DataTransferEventArgs>(this.tStack_SourceUpdated); #line default #line hidden return; case 19: this.grdTrumpPlaceHolder = ((System.Windows.Controls.Grid)(target)); return; case 20: this.ccDeckSizeOne = ((CardLib.CardControl)(target)); return; case 21: this.ccDeckSizeTwo = ((CardLib.CardControl)(target)); return; case 22: this.ccDeckSizeThree = ((CardLib.CardControl)(target)); return; case 23: this.button = ((System.Windows.Controls.Button)(target)); #line 139 "..\..\..\Pages\GamePlay.xaml" this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click); #line default #line hidden return; case 24: this.btnPass = ((System.Windows.Controls.Button)(target)); #line 140 "..\..\..\Pages\GamePlay.xaml" this.btnPass.Click += new System.Windows.RoutedEventHandler(this.btnPass_Click); #line default #line hidden return; case 25: this.txbLog = ((System.Windows.Controls.TextBlock)(target)); return; case 26: this.lblPlayerName = ((System.Windows.Controls.Label)(target)); return; case 27: this.lblGamesPlayed = ((System.Windows.Controls.Label)(target)); return; case 28: this.lblGamesWon = ((System.Windows.Controls.Label)(target)); return; case 29: this.lblGamesLost = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }