public void CacheAllCards() { foreach (MainLine l in CardEntries) { MagicCard c = l.Card; if (c == null) { Debug.WriteLine("DCK: {0} => Card not found: {1}", Name, l.name); } else { MagicData.CacheCard(c); } } }
void onSaveInCache(object sender, MouseButtonEventArgs e) { MagicData.CacheCard(this); }