AE开发张宇

 1   //加载Mxd地图
 2         public string OpenMxd()
 3         {
 4             string MxdPath = "";
 5             OpenFileDialog openMxd = new OpenFileDialog();
 6             openMxd.Title = "打开地图";
 7             openMxd.InitialDirectory = "E:";
 8             openMxd.Filter = "MapDocument (*.mxd)|*.mxd";
 9             if (openMxd.ShowDialog() == DialogResult.OK)
10             {
11                 MxdPath = openMxd.FileName;
12             }
13             return MxdPath;
14         }

 

posted @ 2013-10-07 11:36  文刀三石  阅读(236)  评论(0编辑  收藏  举报