${iServer2_Theme_ThemeEventArgs_Title}

${iServer2_Theme_ThemeEventArgs_Description}

Inheritance: SuperMap.Web.Service.ServiceEventArgs
        private void themeService_ProcessCompleted(object sender, ThemeEventArgs e)
        {
            //服务器处理成功获取传回的专题图key值,唯一对应一个专题图的状态
            themeLayer.LayersKey = e.Result.Key;

            //用于控制只加载一层专题图图层,如果已经加载,就由key值控制该图层专题图的状态
            if (!isAdded)
            {
                this.MyMap.Layers.Add(themeLayer);
                isAdded = true;
            }

            //记录已加载的专题图的名字,为删除专题图做准备
            string layername = e.Result.Name;
            listLayerName.Add(e.Result.Name);
        }
        private void request_Completed(object sender, RequestEventArgs e)
        {
            JsonPrimitive jsonPrimitive = (JsonPrimitive)JsonObject.Parse(e.Result);
            ThemeResult result = ThemeResult.FromJson(jsonPrimitive);

            LastResult = result;
            ThemeEventArgs args = new ThemeEventArgs(result, e.Result, e.UserState);
            OnProcessCompleted(args);
        }
        private void themeService_ProcessCompleted(object sender, ThemeEventArgs e)
        {
            //服务器处理成功获取传回的专题图key值,唯一对应一个专题图的状态
            themeLayer.LayersKey = e.Result.Key;

            //记录已加载的专题图的名字,为删除专题图做准备
            string layername = e.Result.Name;
            listLayerName.Add(layername);
        }
 private void OnProcessCompleted(ThemeEventArgs args)
 {
     if (ProcessCompleted != null)
     {
         Application.Current.RootVisual.Dispatcher.BeginInvoke(ProcessCompleted, new object[] { this, args });
     }
 }