コード例 #1
0
 /// <summary>
 /// Checks internet connection via MapWinGIS
 /// </summary>
 private void btnTestConnection_Click(object sender, EventArgs e)
 {
     #if OCX_VERSION49
     this.Cursor = Cursors.WaitCursor;
     try
     {
         MessageBox.Show("Connection exists: " + tiles.CheckConnection("http://www.google.com"), "MapWinGIS 4", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     catch (Exception ex) {}
     finally
     {
         this.Cursor = Cursors.Default;
     }
     #endif
 }
コード例 #2
0
 public bool CheckConnection(string url)
 {
     return(_tiles.CheckConnection(url));
 }