コード例 #1
0
 public static FrmFeatureInfo GetForm(GSOFeature feature, GSOLayer layer, GSOGlobeControl globeControl)
 {
     if (featureInfo == null)
     {
         featureInfo = new FrmFeatureInfo(feature, layer, globeControl);
     }
     return(featureInfo);
 }
コード例 #2
0
ファイル: FrmFeatureInfo.cs プロジェクト: StarU/qkKL6Dgf12
        public static FrmFeatureInfo GetForm(GSOFeature feature, GSOLayer layer, GSOGlobeControl globeControl)
        {
            if (featureInfo == null)
            {
                featureInfo = new FrmFeatureInfo(feature, layer, globeControl);

            }
            return featureInfo;
        }
コード例 #3
0
 private void FrmFeatureInfo_FormClosing(object sender, FormClosingEventArgs e)
 {
     featureInfo = null;
 }
コード例 #4
0
ファイル: FrmFeatureInfo.cs プロジェクト: StarU/qkKL6Dgf12
 private void FrmFeatureInfo_FormClosing(object sender, FormClosingEventArgs e)
 {
     featureInfo = null;
 }
コード例 #5
0
ファイル: MainFrm.cs プロジェクト: StarU/qkKL6Dgf12
        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();
            }
        }
コード例 #6
0
ファイル: MainFrm.cs プロジェクト: StarU/qkKL6Dgf12
 private void LookSelobjAttribute(GSOFeature feature)
 {
     if (feature != null)
     {
         FrmFeatureInfo dlg = new FrmFeatureInfo(feature, null, globeControl1);
        dlg.Show(this);
     }
 }