private void AddPointElement(IPoint pPoint)
{
if (pPoint != null)
{
IElement pElement = null;
IRgbColor pColor = new RgbColorClass();
pColor.Green = ; double pSize = Math.Round( / this.axMapControl1.MapScale, );
if (pSize < )
pSize = ;
if (pSize > )
pSize = ; IMarkerElement pMarkerElement = new MarkerElementClass();
ISimpleMarkerSymbol pMarkerSymbol = new SimpleMarkerSymbolClass();
pMarkerSymbol.Color = pColor;
pMarkerSymbol.Angle = ;
pMarkerSymbol.Size = pSize;
pMarkerSymbol.Style = esriSimpleMarkerStyle.esriSMSCircle; pMarkerElement.Symbol = pMarkerSymbol;
pElement = pMarkerElement as IElement;
pElement.Geometry = pPoint; this.axMapControl1.ActiveView.GraphicsContainer.AddElement(pElement, );
this.axMapControl1.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, this.axMapControl1.ActiveView.Extent); }
}