Example #1
0
        public void RemoveDeck(DeckListViewModelItem deck)
        {
            Decks.Remove(deck);
            context.RemoveDeck(deck.Deck);

            NotifyListChanges();
            OnPropertyChanged(nameof(CanRemoveDeck));
        }
Example #2
0
 public DeckEditViewModel EditViewModel(DeckListViewModelItem item) =>
 new DeckEditViewModel(item.Deck.AsCopy(), true);
Example #3
0
 public void SelectDeck(DeckListViewModelItem deck)
 {
     context.SelectedDeck = deck.Deck.AsCopy();
     NotifyListChanges();
 }