private void OnProcessCompleted(ExtendServerEventArgs args) { if (ProcessCompleted != null) { this.ProcessCompleted(this, args); } }
private void service_ProcessCompleted(object sender, ExtendServerEventArgs e) { Feature feature = new Feature(); feature.Geometry = new GeoPoint(116, 40); feature.Style = MyMarkerStyle; Grid grid = new Grid(); grid.Background = new SolidColorBrush(Color.FromArgb(99, 00, 00, 00)); StackPanel sp = new StackPanel(); sp.Margin = new Thickness(5); sp.Children.Add(new TextBlock { Text = e.Result.Extendresult, Foreground = new SolidColorBrush(Colors.Red), FontSize = 20 }); grid.Children.Add(sp); feature.ToolTip = grid; FeaturesLayer layer = new FeaturesLayer(); layer.Features.Add(feature); MyMap.Layers.Add(layer); }
private void request_Completed(object sender, RequestEventArgs e) { ExtendServerResult result = ExtendServerResult.FromJson(e.Result); lastResult = result; ExtendServerEventArgs args = new ExtendServerEventArgs(result, e.Result, e.UserState); OnProcessCompleted(args); }