The live sample seems to work fine for me. There are three editors here, one for each GraphicsLayer, each performs an Add, and each editor may raise EditCompleted everytime you click a button. It is normal for a Cancel EditAction to occur before Add EditAction. Are you saying Add EditAction never gets raised after you add a barrier/point/etc to the map?Also the best way to know which layer the edit was applied on is to do
void editor_EditCompleted(object sender, Editor.EditEventArgs e)
{
foreach (var edit in e.Edits)
{
if (e.Action== Editor.EditAction.Add)
{
if (edit.Layer == MyFacilitiesGraphicsLayer)
{
//do something here
}
}
}
}