/// <summary> /// Method converts ESRI ArcGIS Envelope object to ESRI ArcLogistics Envelope object. /// </summary> /// <param name="envelope">Envelope to covert.</param> /// <returns>ESRI ArcLogistics Envelope object.</returns> private ESRI.ArcLogistics.Geometry.Envelope _ConvertToArcLogisticsEnvelope( ESRISDSGeometry.Envelope envelope) { Debug.Assert(envelope != null); var geometry = new ESRI.ArcLogistics.Geometry.Envelope( envelope.XMin, envelope.YMax, envelope.XMax, envelope.YMin); return(geometry); }
/// <summary> /// Suspended extent changing. /// </summary> private void _ChangeExtentOnViewVisibilityChanged(ESRI.ArcLogistics.Geometry.Envelope oldExtent) { Debug.Assert(_mapControl != null); if (_oldExtent != null) { // Increase counter of changing extent by changing map control size, but not more than 2 _mapExtentChangedPostponedCount++; if (_mapExtentChangedPostponedCount > MAX_EXTENT_CHANGING_BY_CHANGE_SIZE) { _mapExtentChangedPostponedCount = MAX_EXTENT_CHANGING_BY_CHANGE_SIZE; } ESRI.ArcGIS.Client.Geometry.Envelope extent = GeometryHelper.CreateExtent(_oldExtent.Value, _mapControl.Map.SpatialReferenceID); _mapControl.ZoomTo(extent); } _mapSizeChangedProcessed = false; }
/// <summary> /// Method converts ESRI ArcGIS Envelope object to ESRI ArcLogistics Envelope object. /// </summary> /// <param name="envelope">Envelope to covert.</param> /// <returns>ESRI ArcLogistics Envelope object.</returns> private ESRI.ArcLogistics.Geometry.Envelope _ConvertToArcLogisticsEnvelope( ESRISDSGeometry.Envelope envelope) { Debug.Assert(envelope != null); var geometry = new ESRI.ArcLogistics.Geometry.Envelope( envelope.XMin, envelope.YMax, envelope.XMax, envelope.YMin); return geometry; }