${iServerJava6R_MeasureEventArgs_Tile}

${iServerJava6R_MeasureEventArgs_Description}

Inheritance: SuperMap.Web.Service.ServiceEventArgs
 private void measureService_ProcessCompleted(object sender, MeasureEventArgs e)
 {
     if (e.Result.Distance == -1)
     {
         MessageBox.Show(e.Result.Area.ToString(System.Globalization.CultureInfo.InvariantCulture) + "平方千米");
     }
     else if (e.Result.Area == -1)
     {
         MessageBox.Show(e.Result.Distance.ToString(System.Globalization.CultureInfo.InvariantCulture) + "千米");
     }
     else
     {
         MessageBox.Show("量算没有结果!");
     }
 }
 private void measureService_ProcessCompleted(object sender, MeasureEventArgs e)
 {
     if (e.Result.Distance == -1)
     {
         MessageBox.Show(e.Result.Area.ToString() + e.Result.Unit.ToString());
     }
     else if (e.Result.Area == -1)
     {
         MessageBox.Show(e.Result.Distance.ToString() + e.Result.Unit.ToString());
     }
     else
     {
         MessageBox.Show("算没有量结果!");
     }
 }
 private void request_Completed(object sender, RequestEventArgs e)
 {
     JsonObject jsonObject = (JsonObject)JsonObject.Parse(e.Result);
     MeasureResult result = MeasureResult.FromJson(jsonObject);
     LastResult = result;
     MeasureEventArgs args = new MeasureEventArgs(result, e.Result, e.UserState);
     OnProcessCompleted(args);
 }
 private void OnProcessCompleted(MeasureEventArgs args)
 {
     if (ProcessCompleted != null)
     {
         //Application.Current.RootVisual.Dispatcher.BeginInvoke(ProcessCompleted, new object[] { this, args });
         this.ProcessCompleted(this, args);
     }
 }