public void FlashDstItem() { IMapControl3 mapControl = this.m_iApp.MapControl as IMapControl3; CRandomColor cRandomColor = new CRandomColor(); Color randColor = cRandomColor.GetRandColor(); ISymbol symbol = null; IRgbColor rgbColor = new RgbColor(); rgbColor.Red = ((int)randColor.R); rgbColor.Green = ((int)randColor.G); rgbColor.Blue = ((int)randColor.B); try { esriGeometryType geometryType = this.igeometryCollection_0.get_Geometry(0).GeometryType; if (geometryType == esriGeometryType.esriGeometryPoint) { ISimpleMarkerSymbol simpleMarkerSymbolClass = new SimpleMarkerSymbol(); simpleMarkerSymbolClass.Color = (rgbColor); symbol = simpleMarkerSymbolClass as ISymbol; } if (geometryType == esriGeometryType.esriGeometryPolyline) { ISimpleLineSymbol simpleLineSymbolClass = new SimpleLineSymbol(); simpleLineSymbolClass.Color = (rgbColor); simpleLineSymbolClass.Width = (6.0); symbol = simpleLineSymbolClass as ISymbol; } symbol.ROP2 = (esriRasterOpCode)(10); mapControl.FlashShape((IGeometry)this.igeometryCollection_0, 6, 150, symbol); } catch { } }
public void FlashDstItem() { IMapControl3 mapControl = m_iApp.MapControl as IMapControl3; CRandomColor cRandomColor = new CRandomColor(); Color randColor = cRandomColor.GetRandColor(); ISimpleLineSymbol simpleLineSymbol = new SimpleLineSymbol(); IRgbColor rgbColor = new RgbColor(); rgbColor.Red = ((int)randColor.R); rgbColor.Green = ((int)randColor.G); rgbColor.Blue = ((int)randColor.B); simpleLineSymbol.Color = (rgbColor); simpleLineSymbol.Width = (5.0); object obj = simpleLineSymbol; ISimpleMarkerSymbol simpleMarkerSymbolClass = new SimpleMarkerSymbol(); simpleMarkerSymbolClass.Color = (rgbColor); simpleMarkerSymbolClass.Size = (10.0); simpleMarkerSymbolClass.Style = (0); object obj2 = simpleMarkerSymbolClass; try { if (this.BuoawIbkuD.GeometryType == esriGeometryType.esriGeometryPoint) { mapControl.DrawShape(this.BuoawIbkuD, ref obj2); } if (this.BuoawIbkuD.GeometryType == esriGeometryType.esriGeometryPolyline) { mapControl.DrawShape(this.BuoawIbkuD, ref obj); } } catch { } }