private void btnAttribute_Click(object sender, EventArgs e) { if (frmAttribute == null || frmAttribute.IsDisposed) { frmAttribute = new FormAtrribute(); } frmAttribute.CurFeatureLayer = pTocFeatureLayer; frmAttribute.InitUI(); frmAttribute.ShowDialog(); }
//右键图层列表查看图层属性 private void showFTLayerAttributeMenuItem_Click(object sender, EventArgs e) { if (frmAttribute == null || frmAttribute.IsDisposed) { frmAttribute = new FormAtrribute(axMapControl1.Map); } frmAttribute.CurFeatureLayer = pTocFeatureLayer; frmAttribute.InitUI(); frmAttribute.ShowDialog(); }