直接读取图层

代码:

public Form1()
{
InitializeComponent();
string PrjPath = String.Format("{0}/gxljdata/map/DZmap.prj", Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath));
dmgismap1.LoadPrj(PrjPath);
//dmgismap1.wholewin();
//CenterToScreen();
dmLayerManageCtrl1.SetInit(dmgismap1);
dmLayerManageCtrl1.RefreshPrj();
//dmgismap1.UpdataWin();
}

原文地址:https://www.cnblogs.com/shuanglangdeliubei/p/5593121.html