void OutputValue(BankDBUSD record) { markersOverlay.Markers.Clear(); var bank = banks[record.Id]; MarkerRed(bank.text, bank.x, bank.y); gMapControl1.Invalidate(); }
private void run() { while (true) { if (this.controlHT != null) { lock (this.ControlHT.SyncRoot) { try { foreach (DictionaryEntry controlHT in this.ControlHT) { GMapControl key = (GMapControl)controlHT.Key; Hashtable value = (Hashtable)controlHT.Value; foreach (Rectangle rectangle in value.Values) { key.Invalidate(rectangle); } } } catch (Exception exception) { } } } Thread.Sleep(this.sleeptime); } }
private void MainMap_OnMarkerClick(GMapMarker item, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { GeoCoderStatusCode status; var pos = GMapProviders.GoogleMap.GetPlacemark(item.Position, out status); if (status == GeoCoderStatusCode.G_GEO_SUCCESS && pos != null) { item.ToolTipText = pos.Value.Address; fMapControl.Invalidate(false); } } }
public void Invalidate() { _mapControl.Invalidate(); }
private void frmDrawConc_FormClosed(object sender, FormClosedEventArgs e) { mapViewer.Invalidate(); }