public int RemoveMarkersAt(TransientDrawingMode viewMode) { lock (_markers) { return(_markers.RemoveAll(x => x.ViewMode == viewMode)); } }
public void AddMarker(DBObject marker, object tag = null, TransientDrawingMode viewMode = TransientDrawingMode.Highlight, short colorIndex = 128) { lock (_markers) { _markers.Add(new ViewBag() { Element = marker, ViewMode = viewMode, Tag = tag, ColorIndex = colorIndex }); } }
private void Display(DBObject marker, TransientDrawingMode viewMode, short colorIndex) { IntegerCollection intCol = new IntegerCollection(); _tm.AddTransient ( marker, viewMode, //128, colorIndex, intCol ); _isDisplaying = true; }