private void TryApplyGeo(GeoCoordinateDefine geoCoordinateDefine)
 {
     geoCoordinateDefine.ShowDialog();
     if (geoCoordinateDefine.DialogResult == System.Windows.Forms.DialogResult.OK)
     {
         if (geoCoordinateDefine.GeographicCoordSystem != null)
         {
             _geoCoordSystem        = geoCoordinateDefine.GeographicCoordSystem;
             _spatialReference      = new SpatialReference(_geoCoordSystem);
             txtSpatialRefInfo.Text = _spatialReference.ToString();
         }
     }
 }
Exemplo n.º 2
0
 public void CollectionArgumentsCreat()
 {
     using (GeoCoordinateDefine geoCoordinateDefine = new GeoCoordinateDefine(_spatialReference, enumControlType.Creat))
     {
         if (geoCoordinateDefine.ShowDialog() == DialogResult.OK)
         {
             _geoCoordSystem = geoCoordinateDefine.GeographicCoordSystem;
         }
         else if (_spatialReference != null)
         {
             _geoCoordSystem = _spatialReference.GeographicsCoordSystem;
         }
     }
 }
Exemplo n.º 3
0
        public void CollectionArgumentsModify()
        {
            _geoCoordSystem = _spatialReference.GeographicsCoordSystem;
            GeoCoordinateDefine geoCoordinateDefine = new GeoCoordinateDefine(_spatialReference, enumControlType.Modify);

            geoCoordinateDefine.ShowDialog();
            if (geoCoordinateDefine.DialogResult == DialogResult.OK)
            {
                //{
                _geoCoordSystem = geoCoordinateDefine.GeographicCoordSystem;
            }
            // btnModify.Enabled = true;
            // }
            //else if (geoCoordinateDefine.DialogResult == DialogResult.Cancel)
            //    return;
        }