/// <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 }
public bool CheckConnection(string url) { return(_tiles.CheckConnection(url)); }