예제 #1
0
 private void DisplayCardInfo()
 {
     try
     {
         _cardInfo                = _cardHandler.getCardInfo(_cardIndex);
         this.txtName.Text        = _cardInfo.Name;
         this.txtCategory.Text    = _cardInfo.Card_category;
         this.txtCardType.Text    = _cardInfo.Card_type;
         this.txtMonsterType.Text = _cardInfo.Monster_type;
         this.txtSubType.Text     = _cardInfo.Sub_type;
         this.txtAttribute.Text   = _cardInfo.Attribute;
         this.txtLevelRank.Text   = _cardInfo.Level_rank;
         this.txtAttack.Text      = _cardInfo.Attack;
         this.txtDefense.Text     = _cardInfo.Defense;
         this.txtEffect.Text      = _cardInfo.Card_text;
         this.txtBanlist.Text     = _cardInfo.Banlist;
         this.picRandCard.Image   = Image.FromFile(AppData.DataPath + @"\" + _cardHandler.CardList[_cardIndex].Card_Image_File);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }