private void UpdateImage(bool forceRefresh) { if ((!(m_ImageStatic == null && m_ImageVariable == null) || forceRefresh) && (Width != 0 && Height != 0)) { if (forceRefresh && _isRefreshing == false) { _isRefreshing = true; this.Enabled = false; SharpMap.Forms.MapBox.Tools oldTool = this.ActiveTool; this.ActiveTool = Tools.None; if (this.ShowProgressUpdate == true) { _progressBar.Visible = true; _progressBar.Enabled = true; } new MethodInvoker(this.GetImagesAsync).BeginInvoke(this.GetImagesAsyncEnd, oldTool); } else { GetImagesAsyncEnd(null); } } }
private void MapBox1_ActiveToolChanged(SharpMap.Forms.MapBox.Tools tool) { if (mapBox1.ActiveTool != SharpMap.Forms.MapBox.Tools.QueryPoint) { btnSelect.Checked = false; } }
void mapBox1_ActiveToolChanged(SharpMap.Forms.MapBox.Tools tool) { this.label1.Text = this.mapBox1.ActiveTool.ToString(); }
public void SetActiveTool(SharpMap.Forms.MapBox.Tools tool) { this.mapBox1.ActiveTool = tool; }