예제 #1
0
파일: MapBox.cs 프로젝트: AlvaIce/GFJT-2020
        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);
                }
            }
        }
예제 #2
0
 private void MapBox1_ActiveToolChanged(SharpMap.Forms.MapBox.Tools tool)
 {
     if (mapBox1.ActiveTool != SharpMap.Forms.MapBox.Tools.QueryPoint)
     {
         btnSelect.Checked = false;
     }
 }
예제 #3
0
 void mapBox1_ActiveToolChanged(SharpMap.Forms.MapBox.Tools tool)
 {
     this.label1.Text = this.mapBox1.ActiveTool.ToString();
 }
예제 #4
0
 public void SetActiveTool(SharpMap.Forms.MapBox.Tools tool)
 {
     this.mapBox1.ActiveTool = tool;
 }