private void EditorWidget_EditCompleted(object sender, Editor.EditEventArgs e)
{
FeatureLayer horizontalWellCap = TabletMap.Layers["1"] as FeatureLayer;
FeatureLayer horizontalwellLateral = TabletMap.Layers["2"] as FeatureLayer;
if (e.Action == Editor.EditAction.Add)
{
foreach (Editor.Change change in e.Edits)
{
if (change.Layer != null && change.Layer == horizontalWellCap && change.Graphic != null)
{
}
}
}
}
private void EditorWidget_EditCompleted(object sender, Editor.EditEventArgs e)
{
FeatureLayer horizontalWellCap = TabletMap.Layers["2"] as FeatureLayer;
FeatureLayer horizontalwellLateral = TabletMap.Layers["5"] as FeatureLayer;
if (e.Action == Editor.EditAction.Add)
{
foreach (Editor.Change change in e.Edits)
{
if (change.Layer != null && change.Layer
== horizontalWellCap && change.Graphic != null)
{
Editor editor = new Editor();
editor.GeometryServiceUrl =
"http://10.100.100.9:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer";
editor.Map = TabletMap;
string[] layerIDs = { "5" };
editor.LayerIDs = layerIDs;
if (editor.Select.CanExecute("new"))
editor.Select.Execute("new");
}
}
}
}