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