Esempio n. 1
0
        private void btnModify_Click(object sender, EventArgs e)
        {
            frmSpatialRefrence refrence = new frmSpatialRefrence
            {
                Text            = "地理坐标系属性",
                SpatialRefrence = this.igeographicCoordinateSystem_0
            };

            if (refrence.ShowDialog() == DialogResult.OK)
            {
                this.igeographicCoordinateSystem_0 = (IGeographicCoordinateSystem)refrence.SpatialRefrence;
                this.method_3(this.igeographicCoordinateSystem_0);
            }
        }
Esempio n. 2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmSpatialRefrence refrence = new frmSpatialRefrence
            {
                Text = "新建地理坐标系",
                SpatialRefrenceType = frmSpatialRefrence.enumSpatialRefrenceType.enumGeographicCoord
            };

            if (refrence.ShowDialog() == DialogResult.OK)
            {
                this.igeographicCoordinateSystem_0 = (IGeographicCoordinateSystem)refrence.SpatialRefrence;
                this.method_3(this.igeographicCoordinateSystem_0);
                this.btnModify.Enabled = true;
            }
        }
Esempio n. 3
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_3();
                this.method_1(this.ispatialReference_0);
                this.method_0();
            }
        }
Esempio n. 4
0
        private void ProjToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSpatialRefrence refrence = new frmSpatialRefrence
            {
                SpatialRefrenceType = frmSpatialRefrence.enumSpatialRefrenceType.enumProjectCoord
            };

            if (refrence.ShowDialog() == DialogResult.OK)
            {
                this.ispatialReference_0 = refrence.SpatialRefrence;
                this.textBoxName.Text    = this.ispatialReference_0.Name;
                this.textBoxName.Tag     = this.ispatialReference_0;
                this.method_0();
            }
        }
Esempio n. 5
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_3();
                this.method_1(this.ispatialReference_0);
                this.method_0();
            }
            refrence.Dispose();
        }
Esempio n. 6
0
 private void btnModify_Click(object sender, EventArgs e)
 {
     if (!(this.ispatialReference_0 is IUnknownCoordinateSystem))
     {
         frmSpatialRefrence refrence = new frmSpatialRefrence
         {
             SpatialRefrence = this.ispatialReference_0
         };
         if (refrence.ShowDialog() == DialogResult.OK)
         {
             this.ispatialReference_0 = refrence.SpatialRefrence;
             this.textBoxName.Text    = this.ispatialReference_0.Name;
             this.textBoxName.Tag     = this.ispatialReference_0;
             this.method_0();
         }
         refrence.Dispose();
     }
 }