public ViewHand(List<Card> hand, GameBoard game) { InitializeComponent(); gameBoard = game; updateHandView(); Closing += Window_Closed; }
private void Start_Game(object sender, RoutedEventArgs e) { string selectedValue= (string)localizationChoicesBox.SelectedValue; System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(selectedValue); //Console.Write("value: " + SentinelsOfTheMultiverse.Properties.Resources.ResourceManager.GetString("Rampage")); beginGame(); GameBoard game = new GameBoard(); game.Show(); this.Close(); }
public DiscardFromBoard(GameBoard game) { InitializeComponent(); gameBoard = game; updateBoardView(); boardShow = GameEngine.getCurrentPlayer().cardsOnField; Closing += Window_Closed; }
public ViewCard(ImageSource cardImage, GameBoard board) { InitializeComponent(); magnifiedCard.Source = cardImage; Button powerButton = new Button(); powerButton.Content = "Play Power"; powerButton.Click += new RoutedEventHandler(Power_Action); StackPanel sp = new StackPanel(); sp.Children.Add(powerButton); sp.Children.Add(magnifiedCard); sp.CanVerticallyScroll = true; sp.MouseDown += new MouseButtonEventHandler(CloseWindow); gameBoard = board; Content = sp; }