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"; }
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; }
public Handler(IGoogleSearch search) { _search = search; }