コード例 #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     this.Hide();
     if (mainwindow.card_1_Deck.Children.Count > 0 && card_1_Deck.Children.Count > 0)
     {
         CardUI card;
         int    x = card_1_Deck.Children.Count;
         for (int i = 0; i < x; i++)
         {
             card = card_1_Deck.Children[x - i - 1] as CardUI;
             card_1_Deck.Children.Remove(card);
             mainwindow.card_1_Deck.Children.Add(card);
             CardOperate.sort_SingleCard(card);
             CardOperate.card_BackAtk(card);
         }
     }
     //foreach (Card card in card_1_Deck.Children)
     //{
     //    card.Visibility = System.Windows.Visibility.Hidden;
     //}
     mainwindow.view_Deck.IsEnabled = true;
     this.tb_View.SelectedIndex     = -1;
     mainwindow.report.Text        += ("查看结束" + Environment.NewLine);
     //Console.WriteLine(this.tb_View.SelectedIndex);
 }