コード例 #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;
 }