Exemple #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);
     }
 }
Exemple #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);
     }
 }
Exemple #3
0
 private void LayersZoomToLayer(object sender, EnvelopeArgs e)
 {
     OnZoomToLayer(e.Envelope);
 }
Exemple #4
0
 private void Layer_ZoomToLayer(object sender, EnvelopeArgs e)
 {
     OnZoomToLayer(sender, e);
 }
Exemple #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();
 }
Exemple #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();
 }
Exemple #7
0
 private void Layers_ZoomToLayer(object sender, EnvelopeArgs e)
 {
     OnZoomToLayer(e.Envelope);
 }
Exemple #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);
 }
 /// <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);
     }
 }
Exemple #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);
 }
Exemple #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);
 }