Пример #1
0
        private void btnModify_Click(object sender, EventArgs e)
        {
            frmSpatialRefrence refrence = new frmSpatialRefrence
            {
                Text            = "地理坐标系属性",
                SpatialRefrence = this.m_GeoCoordSys
            };

            if (refrence.ShowDialog() == DialogResult.OK)
            {
                this.m_GeoCoordSys = (IGeographicCoordinateSystem)refrence.SpatialRefrence;
                this.WriteGeoCoordSysInfo(this.m_GeoCoordSys);
            }
        }
Пример #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.m_GeoCoordSys = (IGeographicCoordinateSystem)refrence.SpatialRefrence;
                this.WriteGeoCoordSysInfo(this.m_GeoCoordSys);
                this.btnModify.Enabled = true;
            }
        }