${IS6_GetResourceEventArgs_Title}

${IS6_GetResourceEventArgs_Description}

Inheritance: SuperMap.Web.Service.ServiceEventArgs
 private void request_Completed(object sender, RequestEventArgs e)
 {
     //JsonObject jsonObject = (JsonObject)JsonObject.Parse(e.Result);
     GetResourceResult result;
     string str;
     if (p.ResourceParam.LayerName.Contains("@"))
     {
         str = p.ResourceParam.LayerName.Remove(p.ResourceParam.LayerName.IndexOf("@"));
         result = GetResourceResult.FromJson(e.Result, str, istheme);
     }
     else
     {
         result = GetResourceResult.FromJson(e.Result, p.ResourceParam.LayerName, istheme);
     }
     // LastResult = result;
     GetResourceEventArgs args = new GetResourceEventArgs(result, e.Result, e.UserState);
     OnProcessCompleted(args);
 }
Esempio n. 2
0
 private void ser_ProcessCompleted(object sender, GetResourceEventArgs e)
 {
     AddImageAndName(e.Result.ImageURL, UriKind.Absolute, e.Result.LayerName, e.Result.IsTheme);
 }
 private void OnProcessCompleted(GetResourceEventArgs args)
 {
     if (ProcessCompleted != null)
     {
         Application.Current.RootVisual.Dispatcher.BeginInvoke(ProcessCompleted, new object[] { this, args });
     }
 }