private void ShowCardZoom(Card card) { FrmCardView frmCardView = new FrmCardView(); frmCardView.ShowCard = card.Source; frmCardView.Owner = Application.Current.MainWindow; frmCardView.ShowDialog(); }
private void Image_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { if (e.ChangedButton == MouseButton.Left && e.ClickCount == 2 && SelectedAdversary != null) { FrmCardView frmCardView = new FrmCardView(); frmCardView.ShowCard = SelectedAdversary.Source; frmCardView.ShowDialog(); } }
private void btnRemoveBlight_Click(object sender, RoutedEventArgs e) { invasion.Blight--; if (invasion.Blight == 0 && invasion.BlightDeck[0].IsFaceUp() == false) { invasion.BlightDeck[0].FlipCard(); invasion.Blight = invasion.PlayerCount * 5; FrmCardView frmCardView = new FrmCardView(); frmCardView.ShowCard = invasion.BlightDeck[0].Source; frmCardView.ShowDialog(); MessageBox.Show("Please remove the appropriate amount of Blight."); } else if (invasion.Blight == 0 && invasion.BlightDeck[0].IsFaceUp() == true) { MessageBox.Show("You lose! =("); } }