lookt the following and see if you could find something helpful.
try
{
FeatureSet fSet = args.FeatureSet;
if (fSet.Features.Count > 0)
{
foreach (Graphic g in fSet.Features)
{
string objId = g.Attributes["OBJECTID"].ToString();
for (int i = 0; i < _plumeFLayer.Graphics.Count; i++)
{
Graphic selectedGraphic = _plumeFLayer.Graphics;
if (selectedGraphic.Attributes["OBJECTID"].ToString() == objId)
{
_plumeFLayer.Graphics.Remove(selectedGraphic);
// _plumeFLayer.Update();
}
} // end for
} // end foreach
// depends how you set AutoSave mode, if it it true, you don't need the following
if (_plumeFLayer.HasEdits)
{
_plumeFLayer.SaveEdits();
_plumeFLayer.Update();
}
}
} //e nd try
catch (Exception error)
{
...
}