private void SetActiveTool(MapToolType mapToolType) { mapControl.ActiveTool = mapToolType; ButtonSelect.Checked = mapToolType == MapToolType.Select; ButtonPan.Checked = mapToolType == MapToolType.Pan; ButtonZoomIn.Checked = mapToolType == MapToolType.ZoomIn; ButtonZoomOut.Checked = mapToolType == MapToolType.ZoomOut; }
public Map() { InitializeComponent(); MapScale = 1.0; MapCenter = new GEOPoint(); Layers = new List <Layer>(); mapToolType = MapToolType.panBtn; }