//缓冲区分析 private void btn_BufferAnalysis_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { FormBufferAnalysis bufferForm = new FormBufferAnalysis(this.axMapControl1.Object, tempPath); if (bufferForm.ShowDialog() == DialogResult.OK) { //获取输出文件路径 string strBufferPath = bufferForm.strOutputPath; //缓冲区图层载入到MapControl int index = strBufferPath.LastIndexOf("\\"); this.axMapControl1.AddShapeFile(strBufferPath.Substring(0, index), strBufferPath.Substring(index)); } }