public void ClearCards() { _objectList.Clear(); _previousNum = 0; if (CurrentCard.Deck == 0) { return; } CurrentCard = new D(); _thisE.NewCardMessage(EnumNewCardCategories.Discard); }
private void ObjectList_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { OnPropertyChanged(nameof(TextToAppear)); if (_didOriginal == true) { _aggregator.NewCardMessage(EnumNewCardCategories.Deck); } OnPropertyChanged(nameof(CurrentDisplayCard)); }