${iServerJava6R_EditFeaturesEventArgs_Title}

${iServerJava6R_EditFeaturesEventArgs_Description}

Inheritance: SuperMap.Web.Service.ServiceEventArgs
        private void request_Completed(object sender, RequestEventArgs e)
        {
            EditFeaturesResult result = null;
            if (JsonObject.Parse(e.Result) is JsonObject)
            {
                JsonObject jsonObject = (JsonObject)JsonObject.Parse(e.Result);
                result = EditFeaturesResult.FromJson(jsonObject);

            }
            else
            {
                JsonArray json = (JsonArray)JsonObject.Parse(e.Result);
                result = new EditFeaturesResult();
                result.Succeed = true;
                result.IDs = new List<int>();
                for (int i = 0; i < json.Count; i++)
                {
                    result.IDs.Add((int)json[i]);
                }
            }

            LastResult = result;
            EditFeaturesEventArgs args = new EditFeaturesEventArgs(result, e.Result, e.UserState);
            OnProcessCompleted(args);
        }
 private void OnProcessCompleted(EditFeaturesEventArgs args)
 {
     if (ProcessCompleted != null)
     {
         this.ProcessCompleted(this, args);
     }
 }
        //删除地物成功
        private void deleteService_ProcessCompleted(object sender, EditFeaturesEventArgs e)
        {
            if (e.Result.Succeed)
            {
                MessageBox.Show("删除地物成功");
                layer.Refresh();
                drawLayer.ClearFeatures();
            }

            EditFeature.IsEnabled = false;
            DeleteFeature.IsEnabled = false;
            featureIDs.Clear();
        }
 //编辑地物属性成功
 private void updateByAttributesService_ProcessCompleted(object sender, EditFeaturesEventArgs e)
 {
     if (e.Result.Succeed)
     {
         layer.Refresh();
         MessageBox.Show("编辑地物属性成功");
     }
 }
 //与服务器交互成功
 private void editService_ProcessCompleted(object sender, EditFeaturesEventArgs e)
 {
     if (e.Result.Succeed)
     {
         MessageBox.Show("添加地物成功");
         tempLayer.ClearFeatures();
         drawLayer.ClearFeatures();
         featureIDs.Clear();
         layer.Refresh();
     }
 }
 void editFeaturesService_ProcessCompleted(object sender, EditFeaturesEventArgs e)
 {
 }