public void GetAll()
 {
     WordNoteBookViewModelCollection.Clear();
     WordNoteBookStackPanel.Children.Clear();
     foreach (var item in WordNoteBookHelper.All())
     {
         WordNoteBookViewModelCollection.Add(new WordNoteBookViewModel(item));
     }
     foreach (var item in WordNoteBookViewModelCollection)
     {
         AddNewItemIntoTheGrid(item);
     }
     Count();
 }
Exemplo n.º 2
0
 public void GetWordNoteInfo()
 {
     WordNoteBookViewModelCollection.Clear();
     foreach (var item in WordNoteBookHelper.All())
     {
         var viewmodel = new WordNoteBookViewModel(item);
         //viewmodel.IsSaved = WordNoteHelper.IsWordSaved(Word);
         WordNoteBookViewModelCollection.Add(viewmodel);
     }
     foreach (var item in WordNoteBookViewModelCollection)
     {
         item.IsSaved = WordNoteHelper.IsWordSaved(Word, item.ID);
     }
 }