private void SearchMemes(string value)
 {
     if (string.IsNullOrWhiteSpace(value))
     {
         MemePaths = new ObservableCollection <string>(Memes);
     }
     else
     {
         MemePaths = new ObservableCollection <string>(Memes.Where(x => x.ToLower().Contains(value.ToLower())));
     }
 }
示例#2
0
        public void NavigateByMemeTag(Guid guid)
        {
            IEnumerable <Meme> memes = Memes.Where(meme => meme.Tags.FirstOrDefault(m => m.MemeTag.Id == guid) != null);

            NewRequest?.Invoke(memes);
        }
示例#3
0
        public void NavigateByRequest(Func <Meme, bool> func)
        {
            IEnumerable <Meme> memes = Memes.Where(func);

            NewRequest?.Invoke(memes);
        }