예제 #1
0
 public void Dispose()
 {
     Memes.Clear();
     GC.Collect();
     GC.WaitForPendingFinalizers();
     OnAllPropertyChanged();
 }
예제 #2
0
 public void ShowImagesWithTags(string tags)
 {
     Memes.Clear();
     foreach (var meme in Repo.FindByTags(tags))
     {
         Memes.Add(meme);
     }
 }
예제 #3
0
 private void _searchService_NewRequest(IEnumerable <Meme> memes)
 {
     if (memes != null && !IsBusy)
     {
         Model = memes;
         App.Current.Dispatcher.BeginInvoke(() => {
             Memes.Clear();
             PageLoadedCommand.Execute(null);
         });
     }
 }