Ejemplo n.º 1
0
        static IEnumerable <SearchProposition> FetchPropositions(SearchContext context, SearchPropositionOptions options)
        {
            if (!options.flags.HasAny(SearchPropositionFlags.QueryBuilder))
            {
                yield break;
            }

            foreach (var f in QueryListBlockAttribute.GetPropositions(typeof(QueryScopeFilterBlock)))
            {
                yield return(f);
            }
        }
Ejemplo n.º 2
0
 public QueryTypeBlock(IQuerySource source, string id, string value, QueryListBlockAttribute attr)
     : base(source, id, value, attr)
 {
     SetType(GetValueType(value));
 }
Ejemplo n.º 3
0
 public QueryListMarkerBlock(IQuerySource source, string id, QueryMarker value, QueryListBlockAttribute attr)
     : base(source, id, value.value as string, attr)
 {
     m_Marker = value;
 }
Ejemplo n.º 4
0
 public QueryScopeFilterBlock(IQuerySource source, string id, string value, QueryListBlockAttribute attr)
     : base(source, id, value, attr)
 {
     icon = Utils.LoadIcon("Filter Icon");
 }