예제 #1
0
        public static void AddCategory(string category)
        {
            Categories.Add(category);
            var sorted = Categories.OrderBy(x => x).ToList();

            Categories.Clear();
            Categories.AddRange(sorted);
        }
예제 #2
0
 public void LoadList(List <Book> list)
 {
     if (list == null)
     {
         return;
     }
     ShownBooks.Clear();
     list.ForEach(book => { book.DownloadedGUI = book.IsDownloaded; });
     ShownBooks.AddRange(list);
     BookCount = $"Shown: {ShownBooks.Count}";
 }