private void SearchWebAsync() { //Start the invokation and pass in a callback delegate //to be called in finish ShowSearchStatus("Querying service..."); RegexLib.Services.Webservices searcher = new RegexLib.Services.Webservices(); IAsyncResult result = searcher.BeginlistRegExp(txtSearch.Text,"",-1,50,new AsyncCallback(OnSearchFinish),searcher); }
private Webservices CreateWebService() { Webservices searcher = new RegexLib.Services.Webservices(); System.Net.WebProxy myProxy = ProxyFactory.Create(AppContext.Instance.Settings.ProxySettings,searcher.Url); if(myProxy!=null) { searcher.Proxy= myProxy; } return searcher; }