예제 #1
0
 /// <summary>
 /// Fires the EnvelopeChanged event.
 /// </summary>
 /// <param name="sender">The object sender for this event (this)</param>
 /// <param name="e">The EnvelopeArgs specifying the envelope</param>
 protected virtual void OnEnvelopeChanged(object sender, EnvelopeArgs e)
 {
     if (EnvelopeChanged != null)
     {
         EnvelopeChanged(sender, e);
     }
 }
예제 #2
0
 /// <summary>
 /// Fires the ZoomToLayer method when one of the layers fires its ZoomTo event
 /// </summary>
 /// <param name="sender">The layer to zoom to</param>
 /// <param name="e">The extent of the layer</param>
 protected virtual void OnZoomToLayer(object sender, EnvelopeArgs e)
 {
     // Just forward the event
     if (ZoomToLayer != null)
     {
         ZoomToLayer(sender, e);
     }
 }
예제 #3
0
 private void LayersZoomToLayer(object sender, EnvelopeArgs e)
 {
     OnZoomToLayer(e.Envelope);
 }
예제 #4
0
 private void Layer_ZoomToLayer(object sender, EnvelopeArgs e)
 {
     OnZoomToLayer(sender, e);
 }
예제 #5
0
 /// <summary>
 /// This adjusts the extents when ZoomToLayer is called in one of the internal layers.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void Layers_ZoomToLayer(object sender, EnvelopeArgs e)
 {
     ViewExtents = e.Envelope.ToExtent();
 }
예제 #6
0
 /// <summary>
 /// This adjusts the extents when ZoomToLayer is called in one of the internal layers.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void Layers_ZoomToLayer(object sender, EnvelopeArgs e)
 {
     ViewExtents = e.Envelope.ToExtent();
 }
예제 #7
0
 private void Layers_ZoomToLayer(object sender, EnvelopeArgs e)
 {
     OnZoomToLayer(e.Envelope);
 }
예제 #8
0
 /// <summary>
 /// Fires the ZoomToLayer method when one of the layers fires its ZoomTo event.
 /// </summary>
 /// <param name="sender">The layer to zoom to.</param>
 /// <param name="e">The extent of the layer.</param>
 protected virtual void OnZoomToLayer(object sender, EnvelopeArgs e)
 {
     // Just forward the event
     ZoomToLayer?.Invoke(sender, e);
 }
예제 #9
0
 /// <summary>
 /// Fires the EnvelopeChanged event.
 /// </summary>
 /// <param name="sender">The object sender for this event (this)</param>
 /// <param name="e">The EnvelopeArgs specifying the envelope</param>
 protected virtual void OnEnvelopeChanged(object sender, EnvelopeArgs e)
 {
     if (EnvelopeChanged != null)
     {
         EnvelopeChanged(sender, e);
     }
 }
예제 #10
0
 /// <summary>
 /// Fires the EnvelopeChanged event.
 /// </summary>
 /// <param name="sender">The object sender for this event (this).</param>
 /// <param name="e">The EnvelopeArgs specifying the envelope.</param>
 protected virtual void OnEnvelopeChanged(object sender, EnvelopeArgs e)
 {
     EnvelopeChanged?.Invoke(sender, e);
 }
예제 #11
0
 /// <summary>
 /// Modifies the ZoomToLayer behavior to account for the possibility of an expanded
 /// MapFrame.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected override void Layers_ZoomToLayer(object sender, EnvelopeArgs e)
 {
     ZoomToLayerEnvelope(e.Envelope);
 }