private void layer_Initialized(object sender, EventArgs e)
{
if ((!Rectangle2D.IsNullOrEmpty(this.ViewBounds)) && (this.panHelper != null) && (this.CurrentZoomAnimationHandler == null))
{
if ((currentSize.Height > 0.0) && (currentSize.Width > 0.0))
{
this.CalculateStartViewBounds(currentSize);
if ((!Rectangle2D.IsNullOrEmpty(this.ViewBounds)) && !double.IsNaN(this.mapResolution))
{
this.LoadLayerInView(false, this.ViewBounds, sender as Layer);
}
}
}
}
private void layer_OnLayerChanged(object sender, EventArgs args)