public GeoCreateProjection(GeoProjFileSystem projectionSystem) { this.components = null; this.InitializeComponent(); this.CreateButton.Visible = false; this.btnCancel.Text = GISCtrlGResourceEx.GIS_OK; this.m_ProjectionSystem = projectionSystem; this.m_GaussProperty = new GeoGaussParamsProperty(this.m_ProjectionSystem); this.m_GaussProperty.IsNameReadonly = true; this.m_GaussProperty.ProjectionChangeEvent += new IAGeoProperty.ChangeProjectionEventHandler(this.ChangeProjectionType); this.m_DistProperty = new GeoDistortionParamsProperty(this.m_ProjectionSystem); this.m_DistProperty.IsNameReadonly = true; this.m_DistProperty.ProjectionChangeEvent += new IAGeoProperty.ChangeProjectionEventHandler(this.ChangeProjectionType); this.m_ConeProperty = new GeoConeParamsProperty(this.m_ProjectionSystem); this.m_ConeProperty.IsNameReadonly = true; this.m_ConeProperty.ProjectionChangeEvent += new IAGeoProperty.ChangeProjectionEventHandler(this.ChangeProjectionType); this.m_UTMProperty = new GeoUTMParamsProperty(this.m_ProjectionSystem); this.m_UTMProperty.IsNameReadonly = true; this.m_UTMProperty.ProjectionChangeEvent += new IAGeoProperty.ChangeProjectionEventHandler(this.ChangeProjectionType); this.ChangeProjectionType(this.m_ProjectionSystem.CurrentProjParamType, this.m_ProjectionSystem.ProjectionName); GeoProjectionLoader.UTMZoneList = new int[60]; for (int i = 0; i < GeoProjectionLoader.UTMZoneList.Length; i++) { GeoProjectionLoader.UTMZoneList[i] = i + 1; } }
public GeoCreateProjection() { this.components = null; this.InitializeComponent(); this.m_ProjectionSystem = new GeoProjFileSystem(); this.m_GaussProperty = new GeoGaussParamsProperty(this.m_ProjectionSystem); this.m_GaussProperty.ProjectionChangeEvent += new IAGeoProperty.ChangeProjectionEventHandler(this.ChangeProjectionType); this.m_DistProperty = new GeoDistortionParamsProperty(this.m_ProjectionSystem); this.m_DistProperty.ProjectionChangeEvent += new IAGeoProperty.ChangeProjectionEventHandler(this.ChangeProjectionType); this.m_ConeProperty = new GeoConeParamsProperty(this.m_ProjectionSystem); this.m_ConeProperty.ProjectionChangeEvent += new IAGeoProperty.ChangeProjectionEventHandler(this.ChangeProjectionType); this.m_UTMProperty = new GeoUTMParamsProperty(this.m_ProjectionSystem); this.m_UTMProperty.ProjectionChangeEvent += new IAGeoProperty.ChangeProjectionEventHandler(this.ChangeProjectionType); this.propertyGrid1.SelectedObject = this.m_GaussProperty; this.m_Type = ProjParamType.GaussProjParam; GeoProjectionLoader.UTMZoneList = new int[60]; for (int i = 0; i < GeoProjectionLoader.UTMZoneList.Length; i++) { GeoProjectionLoader.UTMZoneList[i] = i + 1; } }