private void ForwardPage(object sender, EventArgs e) { m_iCurrentPage++; if (m_iCurrentPage >= m_iAccessedPages) { m_iAccessedPages++; DappleSearchWebDownload oDownload = new DappleSearchWebDownload(m_oSearchBoundingBox, m_szSearchString, m_iCurrentPage, m_lSearchIndex, m_iPageSize); SetSearching(); oDownload.BackgroundDownloadMemory(new DownloadCompleteHandler(ForwardPageComplete)); } else { RefreshResultList(); } }
internal void SetSearchParameters(String szKeyword, GeographicBoundingBox oBoundingBox) { if (!MainForm.Settings.UseDappleSearch) { return; } m_lSearchIndex++; m_oSearchBoundingBox = oBoundingBox; m_szSearchString = szKeyword; if (String.Empty.Equals(szKeyword) && oBoundingBox == null) { SetNoSearch(); } else { UpdatePageSize(); DappleSearchWebDownload oDownload = new DappleSearchWebDownload(m_oSearchBoundingBox, m_szSearchString, 0, m_lSearchIndex, m_iPageSize); SetSearching(); oDownload.BackgroundDownloadMemory(new DownloadCompleteHandler(SetSearchParametersComplete)); } }
internal void SetSearchParameters(String szKeyword, GeographicBoundingBox oBoundingBox) { if (!MainForm.Settings.UseDappleSearch) return; m_lSearchIndex++; m_oSearchBoundingBox = oBoundingBox; m_szSearchString = szKeyword; if (String.Empty.Equals(szKeyword) && oBoundingBox == null) { SetNoSearch(); } else { UpdatePageSize(); DappleSearchWebDownload oDownload = new DappleSearchWebDownload(m_oSearchBoundingBox, m_szSearchString, 0, m_lSearchIndex, m_iPageSize); SetSearching(); oDownload.BackgroundDownloadMemory(new DownloadCompleteHandler(SetSearchParametersComplete)); } }