public FrmPartialRefresh() { InitializeComponent(); mMapControl = new UcMapControl(); mMapControl.Dock = DockStyle.Fill; mMapControl.SetCenter(new RPoint(0, 0, 0));//设置基准点 this.Controls.Add(mMapControl); HookHelper mHook = HookHelper.Instance(); mHook.MapControl = mMapControl; }
public override void OnCreate(HookHelper hook) { Name = "绘制多边形"; mMapCtrl = hook.MapControl as UcMapControl; mScreenDisplay = mMapCtrl.mScreenDisplay; }