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