コード例 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //GoogleSearchFactory.CreateGoogleDesktopSearch();

            //ResultTypes Doris;

            IGoogleSearch       MySearch = GoogleSearchFactory.CreateGoogleDesktopSearch();
            IGoogleSearchResult MyResult;

            MyResult = MySearch.Search("Peter");

            String       path = "C:\\Documents and Settings\\dromischer\\desktop\\GDStest.txt";
            StreamWriter sw   = File.CreateText(path);

            sw.Write(MyResult.QueryResult);



            //dataSet1. = (System.Data.DataSet) MyResult.QueryResult;



            //MyRichTextBox.Text = MyResult.QueryResult.ToString();

            //MyRichTextBox.Lines[0] = "Doris DOris";
        }
コード例 #2
0
 public GoogleSearchResult(IGoogleSearch googleSearch, int resultsCount, int startedFrom, int resultsPerPage, string query, object queryResult, ResultTypes resultType)
 {
     this.googleSearch   = googleSearch;
     this.resultsCount   = resultsCount;
     this.startedFrom    = startedFrom;
     this.resultsPerPage = resultsPerPage;
     this.query          = query;
     this.queryResult    = queryResult;
     this.resultType     = resultType;
 }
コード例 #3
0
 public Handler(IGoogleSearch search)
 {
     _search = search;
 }