public SelectDeckVM(int Type) { this.Type = Type; DeckDatabase = new DeckDB(); Decks = DeckDatabase.GetDecks(); ToPlayPage = new Command(NavToPlayPage); }
public EditDeckViewModel(INavigation navigation) { DeckDatabase = new DeckDB(); Decks = DeckDatabase.GetDecks(); Remove = new Command(RemoveDeck); Rename = new Command(RenameDeck); Add = new Command(AddDeck); Edit = new Command(EditCards); Visible = true; this.navigation = navigation; }
public SelectDeckPopupModel() { DeckDatabase = new DeckDB(); Decks = DeckDatabase.GetDecks(); for (var i = 0; i < 2; i++) { Decks.Add(Decks[i]); } for (var i = 0; i < 5; i++) { Decks.Add(Decks[i]); } DeckSettings = new Command(NavToDeckSettings); }