private void mapService_Initialized(object sender, SmMapService.MapServiceInitalizeArgs e)
{
if (e.MapService.MapServiceUrl == this.Url.Trim())
{
if (base.Error != null)
{
base.Initialize();
}
else
{
this.Bounds = this.mapService.MapServiceInfo.MapBounds;
if (CRS == null)
{
CRS = this.mapService.MapServiceInfo.CRS;
}
this.Dpi = ScaleHelper.GetSmDpi(this.mapService.MapServiceInfo.ReferViewBounds, this.mapService.MapServiceInfo.ReferViewer, this.mapService.MapServiceInfo.ReferScale);
Dpi *= AdjustFactor;
base.Initialize();
}
}
}