internal BF(Player a, Player b, Game d, Gaming game) { Player1 = a; Player2 = b; g = d; this.game = game; InitializeComponent(); BFgrid.Children.Add(game); }
private void ToBG(object sender, RoutedEventArgs e) { if (PlayerCheck == 2) { Player Player1 = new Player(NameA, c1, DeckOne, FieldOne); Player Player2 = new Player(NameB, c2, DeckTwo, FieldTwo); g.SelectTurns(Player1, Player2); Gaming ga = new Gaming(); BF p2 = new BF(Player1, Player2, g, ga); MainFrame.Navigate(p2); } }