Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        private Object GetSource(String query)
        {
            try
            {
                if (String.IsNullOrEmpty(query))
                {
                    return(null);
                }

                Wikipedia        wiki        = new Wikipedia(new WikiQueryEngine());
                SearchSuggestion suggestion  = wiki.SearchArticles(query, 10);
                WikiControl      omukControl = new WikiControl();
                return(suggestion);
            }
            catch { }

            return(null);
        }
Esempio n. 2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        private Object GetSource(String query)
        {
            try
            {
                if (String.IsNullOrEmpty(query))
                    return null;

                Wikipedia wiki = new Wikipedia(new WikiQueryEngine());
                SearchSuggestion suggestion = wiki.SearchArticles(query, 10);
                WikiControl omukControl = new WikiControl();
                return suggestion;
            }
            catch { }

            return null;
        }