Inheritance: System.Windows.Forms.Form
 private void 载入卡组ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DeckSelect DeckSelect = new DeckSelect(this);
     DeckSelect.ShowDialog();
     if (DeckSelect.DialogResult == DialogResult.OK)
     {
         DeckFilename = DeckSelect.SelectedDeckFilename;
         Reset();
         if (AppConfig.GetValue("UseFirsrCardAsHero") == "True")
         {
             HeroNum = 0;
         }
         else
         {
             SelectHero SelectHeroFromDeck = new SelectHero(Player, this);
             SelectHeroFromDeck.ShowDialog();
             if (SelectHeroFromDeck.DialogResult == DialogResult.OK)
             {
                 HeroNum = SelectHeroFromDeck.HeroNum;
             }
             else
             {
                 HeroNum = 0;
             }
             SelectHeroFromDeck.Dispose();
         }
         Renew();
         buttonGameOn.Enabled = true;
         游戏开始ToolStripMenuItem.Enabled = true;
         msgProcessor.Send("SelectDeck", "#载入卡组,共" + Player.Deck.CardList.Count.ToString() + "张卡。");
     }
 }
Exemple #2
0
 private void 载入卡组ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DeckSelect DeckSelect = new DeckSelect(this);
     DeckSelect.ShowDialog();
     if (DeckSelect.DialogResult == DialogResult.OK)
     {
         DeckFilename = DeckSelect.SelectedDeckFilename;
         Reset();
         Renew();
         buttonGameOn.Enabled = true;
         游戏开始ToolStripMenuItem.Enabled = true;
         if (Language == Language.Chinese)
         {
             msgProcessor.Send("SelectDeck", "#载入卡组,共" + Player.Deck.CardList.Count.ToString() + "张卡。");
         }
         else
         {
             msgProcessor.Send("SelectDeck", "#Deck is selected. The total number of cards in the deck is " + Player.Deck.CardList.Count.ToString() + ".");
         }
     }
 }