示例#1
0
        public void SortByName()
        {
            sortBy = SortBy.Name;
            UpdateUserPrefs();

            var listDeck = Decks.ToList();

            SortAllDecks(listDeck, DoSortByName);
            UpdateDecks(listDeck);
        }
示例#2
0
        public void SortByDateAdded()
        {
            sortBy = SortBy.DateAdded;
            UpdateUserPrefs();

            var listDeck = Decks.ToList();

            SortAllDecks(listDeck, DoSortByDate);
            UpdateDecks(listDeck);
        }
示例#3
0
 public async Task SaveDecks()
 {
     await DeckDataSource.SaveDeckAsync(Decks.ToList().Select(p => p.ToDeck()));
 }