Exemple #1
0
        public GuideSearch(QUERYTYPE type, QUERYMODE mode, string searchstring)
        {
            gs = new GSMediaLibrary();
            switch (mode)
            {
            case QUERYMODE.CONTAINS:
                query = ShowQueryOp.Contains;
                break;

            case QUERYMODE.STARTSWITH:
                query = ShowQueryOp.StartsWith;
                break;
            } // switch mode

            switch (type)
            {
            case QUERYTYPE.KEYWORD:
                programs = gs.ShowsKeywordQuery(query, searchstring);
                break;

            case QUERYTYPE.TITLE:
                programs = gs.ShowsTitleQuery(query, searchstring);
                break;
            } // switch type
        }
Exemple #2
0
 public LenCheck()
 {
     gs       = new GSMediaLibrary();
     query    = ShowQueryOp.Contains;
     programs = gs.ShowsKeywordQuery(query, " ");
 }