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; } }; }
private void ClearAll() { foreach (var obj in ListOfRoleCardList) { obj.Clear(); } CardImageDictionary.Clear(); ResetInput(); SaveFileName = null; IsModified = false; this.Text = "至强卡牌编辑器"; }
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(); } }