示例#1
0
 private void InitCardControl()
 {
     cardInfoControl1.IdBoxEnable               = false;
     cardInfoControl1.LevelBoxEnable            = false;
     cardInfoControl1.CardLevels                = CardLevels;
     cardInfoControl1.ImageRefreshEventHandler += (sender, msg) =>
     {
         if (CardImageDictionary.ContainsKey(msg.Id))
         {
             CardImageDictionary[msg.Id] = msg.Img;
         }
     };
 }
示例#2
0
        private void RemoveCard()
        {
            if (SelectedItem != null)
            {
                IsModified = true;
                var card = SelectedItem;

                if (CardImageDictionary.ContainsKey(card.Id))
                {
                    CardImageDictionary.Remove(card.Id);
                }
                ListOfRoleCardList[(int)card.Level].Remove(card);
                ResetInput();
            }
        }