代码:
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(); }