private void btnGetDatum_Click(object sender, System.EventArgs e) { if (_sRef == null) { return; } FormSpatialReferenceSystems dlg = new FormSpatialReferenceSystems(ProjDBTables.datums); if (dlg.ShowDialog() == DialogResult.OK) { if (dlg.GeodeticDatum != null) { _sRef.Datum = dlg.GeodeticDatum; } MakeGUI(); } }
private void btnGetSys_Click(object sender, System.EventArgs e) { FormSpatialReferenceSystems dlg = new FormSpatialReferenceSystems(ProjDBTables.projs); if (dlg.ShowDialog() == DialogResult.OK) { if (dlg.SpatialRefererence != null) { IGeodeticDatum datum = null; if (_sRef != null) { datum = _sRef.Datum; } _sRef = dlg.SpatialRefererence; if (datum != null) { _sRef.Datum = datum; } MakeGUI(); } } }