Пример #1
0
 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();
     }
 }
Пример #2
0
        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));
            }
        }
Пример #3
0
 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();
     }
 }
Пример #4
0
        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));
            }
        }