private void initialResponse(RequestPacket packet) { var responseHandler = packet.AnalisisModuleResponseUI; responseHandler.RequestProcessedCallback( packet.Uid, packet.Url, new WebPageData[] { WebPageData.GetFakeData() }); }
private void ContentView_ItemClick(object sender, AdapterView.ItemClickEventArgs e) { var webpageData = adapter.data[e.Position]; IsNextPageRequestSent = false; var nextPageReader = currentWebPage.OnClickCallback(webpageData); currentState = currentState + 1; if (nextPageReader.IsOnClickBigImage) { //show download button addToDownloadButton.Visibility = ViewStates.Visible; } else { addToDownloadButton.Visibility = ViewStates.Gone; } if (webpageData.IsFinal && nextPageReader != null) { analysisModule.RequestStringData(UidGenerator(), MoveToWebpage(nextPageReader, adapter.data, this.Title, e.Position), this); title = this.Title = webpageData.mainText; adapter.data = new WebPageData[] { WebPageData.GetFakeData() }; adapter.NotifyDataSetChanged(); currenItemPosition = 0; } else if (currentWebPage.IsOnClickBigImage) { try { currenItemPosition = e.Position; cachedData = adapter.data; //StartActivity(websiteImageViewer); StartActivityForResult(websiteImageViewer, WebsiteImageViewRequestCode); } catch (System.Exception) { } } }