public static FrmFeatureInfo GetForm(GSOFeature feature, GSOLayer layer, GSOGlobeControl globeControl) { if (featureInfo == null) { featureInfo = new FrmFeatureInfo(feature, layer, globeControl); } return(featureInfo); }
public static FrmFeatureInfo GetForm(GSOFeature feature, GSOLayer layer, GSOGlobeControl globeControl) { if (featureInfo == null) { featureInfo = new FrmFeatureInfo(feature, layer, globeControl); } return featureInfo; }
private void FrmFeatureInfo_FormClosing(object sender, FormClosingEventArgs e) { featureInfo = null; }
private void ShowAddFeatureDlg(GSOFeature newFeature) { TreeNode featureAddLayerTreeNode = GetDestLayerFeatureAddTreeNode(); if (featureAddLayerTreeNode == null) { MessageBox.Show("添加失败!没有设置目标图层,请先设置", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } // 先添加到图层中,这样可以预览效果 GSOLayer featureAddLayer = (GSOLayer)featureAddLayerTreeNode.Tag; featureAddLayer.AddFeature(newFeature); globeControl1.Refresh(); FrmFeatureInfo dlg = new FrmFeatureInfo(newFeature, featureAddLayer, globeControl1); DialogResult result = dlg.ShowDialog(this); if (result == DialogResult.OK) { RefreshTreeNodeLayerFeatureList(featureAddLayerTreeNode); } else { newFeature.Delete(); } }
private void LookSelobjAttribute(GSOFeature feature) { if (feature != null) { FrmFeatureInfo dlg = new FrmFeatureInfo(feature, null, globeControl1); dlg.Show(this); } }