public void refresh() { MyMapHelp.Show_IsVisiable(axMapControlZZT.Map, pLayer, "BID='" + BID + "'"); pGeometry = setgeo(pGeometry); axMapControlZZT.Extent = pGeometry.Envelope; axMapControlZZT.MapScale = blc; axMapControlZZT.ActiveView.Refresh(); }
private void tStripBtnOpen_Click(object sender, EventArgs e) { FrmManageZhzzt frm = new FrmManageZhzzt(this); if (frm.ShowDialog(this) == DialogResult.OK) { MyMapHelp.Show_IsVisiable(axMapControlZZT.Map, pLayer, "BID='" + BID + "'"); pGeometry = setgeo(pGeometry); axMapControlZZT.Extent = pGeometry.Envelope; axMapControlZZT.MapScale = blc; axMapControlZZT.ActiveView.Refresh(); } else { MyMapHelp.Show_IsVisiable(axMapControlZZT.Map, pLayer, "BID='-1'"); } }