internal void ClearTempGraphics()
{
var mxdoc = ArcMap.Application.Document as IMxDocument;
if (mxdoc == null)
return;
var av = mxdoc.FocusMap as IActiveView;
if (av == null)
return;
var gc = av as IGraphicsContainer;
if (gc == null)
return;
RemoveGraphics(gc, true);
av.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);
RaisePropertyChanged(() => HasMapGraphics);
}