public ProcessAsync ( |
||
parameters | ||
return | void |
private void isVisible_Click(object sender , RoutedEventArgs e) { SetLayerStatusParameters parameters = new SetLayerStatusParameters { HoldTime = 30 , LayerStatusList = layersStatus , ResourceID = tempLayerID }; SetLayerStatusService setLayersStatus = new SetLayerStatusService(url); setLayersStatus.ProcessAsync(parameters); setLayersStatus.ProcessCompleted += new EventHandler<SetLayerEventArgs>(setLayersStatus_ProcessCompleted); setLayersStatus.Failed += new EventHandler<SuperMap.Web.Service.ServiceFailedEventArgs>(setLayersStatus_Failed); }
private void SetLayerStatus_Click(object sender, RoutedEventArgs e) { SetLayerStatusService layerStatusService = new SetLayerStatusService(url); SetLayerStatusParameters parameters = new SetLayerStatusParameters { LayerStatusList = new List<LayerStatus> { new LayerStatus{ IsVisible=false, LayerName="ContinentLabel@World" }, new LayerStatus{ IsVisible=false, LayerName="OceanLabel@World" }, new LayerStatus { IsVisible=false, LayerName="标签专题图#2" }, new LayerStatus { IsVisible=false, LayerName="Ocean@World" }, new LayerStatus { IsVisible=false, LayerName="Capitals@World" }, new LayerStatus { IsVisible=false, LayerName="Grids@World" }, new LayerStatus { IsVisible=false, LayerName="单值专题图" }, }, ResourceID = "3" }; layerStatusService.ProcessAsync(parameters); layerStatusService.ProcessCompleted += new EventHandler<SetLayerEventArgs>(layerStatusService_ProcessCompleted); layerStatusService.Failed += new EventHandler<ServiceFailedEventArgs>(layerStatusService_Failed); }