public SameTitleCardsStatisticVM(Card card, CardVM cardVM, VM vm, CardStatisticVM cardStatisticVM) { _card = card; _vm = vm; _cardVM = cardVM; _cardStatisticVM = cardStatisticVM; InterestsPassingsCount = 3; CardPassings = DBTools.Context.Cards.Where(c => c.Title == card.Title).Select(c => c.CardPassings).SelectMany(c => c).ToList(); }
internal void OnClearCardStatisticsVM() { CardStatisticVM = new CardStatisticVM(_card, this, _vm); }
public CardVM(Card card, VM vm) { _card = card; _vm = vm; _cardStatisticVM = new CardStatisticVM(card, this, vm); }