Ejemplo 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);
        }
Ejemplo 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;
        }