public void SortByName() { sortBy = SortBy.Name; UpdateUserPrefs(); var listDeck = Decks.ToList(); SortAllDecks(listDeck, DoSortByName); UpdateDecks(listDeck); }
public void SortByDateAdded() { sortBy = SortBy.DateAdded; UpdateUserPrefs(); var listDeck = Decks.ToList(); SortAllDecks(listDeck, DoSortByDate); UpdateDecks(listDeck); }
public async Task SaveDecks() { await DeckDataSource.SaveDeckAsync(Decks.ToList().Select(p => p.ToDeck())); }