Exemplo n.º 1
0
        private bool SeriesSearchFilter(object obj)
        {
            VM_AnimeSeries_User servm = obj as VM_AnimeSeries_User;

            if (servm == null)
            {
                return(true);
            }

            return(GroupSearchFilterHelper.EvaluateSeriesTextSearch(servm, txtSeriesSearch.Text.Replace("'", "`")));
        }
Exemplo n.º 2
0
        private bool SeriesSearchFilter(object obj)
        {
            AnimeSeriesVM servm = obj as AnimeSeriesVM;

            if (servm == null)
            {
                return(true);
            }

            return(GroupSearchFilterHelper.EvaluateSeriesTextSearch(servm, txtSeriesSearch.Text));
        }
Exemplo n.º 3
0
        private bool GroupSeriesSearchFilter(object obj)
        {
            AnimeGroupVM grpvm = obj as AnimeGroupVM;

            if (grpvm != null)
            {
                return(GroupSearchFilterHelper.EvaluateGroupTextSearch(grpvm, txtGroupSearch.Text));
            }

            AnimeSeriesVM ser = obj as AnimeSeriesVM;

            if (ser != null)
            {
                return(GroupSearchFilterHelper.EvaluateSeriesTextSearch(ser, txtGroupSearch.Text));
            }

            return(false);
        }
        private bool GroupSeriesSearchFilter(object obj)
        {
            VM_AnimeGroup_User grpvm = obj as VM_AnimeGroup_User;

            if (grpvm != null)
            {
                return(GroupSearchFilterHelper.EvaluateGroupTextSearch(grpvm, txtGroupSearch.Text));
            }

            VM_AnimeSeries_User ser = obj as VM_AnimeSeries_User;

            if (ser != null)
            {
                return(GroupSearchFilterHelper.EvaluateSeriesTextSearch(ser, txtGroupSearch.Text));
            }

            return(false);
        }
Exemplo n.º 5
0
        private bool SeriesSearchFilter(object obj)
        {
            VM_AnimeSeries_User ser = obj as VM_AnimeSeries_User;

            if (ser == null)
            {
                return(false);
            }

            if (SearchResultCount > 100)
            {
                return(false);
            }

            var passed = GroupSearchFilterHelper.EvaluateSeriesTextSearch(ser, SeriesSearchTextBox.Text.Replace("'", "`"), SerSearchType);

            if (passed)
            {
                SearchResultCount++;
            }

            return(passed);
        }