Пример #1
0
        private void btnModify_Click(object sender, EventArgs e)
        {
            frmSpatialRefrence refrence = new frmSpatialRefrence
            {
                SpatialRefrence = this.ispatialReference_0
            };

            if (refrence.ShowDialog() == DialogResult.OK)
            {
                this.ispatialReference_0 = refrence.SpatialRefrence;
                this.method_5();
                this.method_4(this.ispatialReference_0);
                this.method_6();
            }
            refrence.Dispose();
        }
Пример #2
0
        private void menuItem_1_Click(object sender, EventArgs e)
        {
            frmSpatialRefrence refrence = new frmSpatialRefrence
            {
                SpatialRefrenceType = frmSpatialRefrence.enumSpatialRefrenceType.enumProjectCoord
            };

            if (refrence.ShowDialog() == DialogResult.OK)
            {
                this.ispatialReference_0 = refrence.SpatialRefrence;
                this.method_5();
                this.method_4(this.ispatialReference_0);
                this.method_6();
                TreeNode node = new TreeNode(this.ispatialReference_0.Name, 2, 2)
                {
                    Tag = this.ispatialReference_0
                };
                this.treeNode_0.Nodes.Add(node);
                this.treeView1.SelectedNode = node;
            }
        }