示例#1
0
 public int RemoveMarkersAt(TransientDrawingMode viewMode)
 {
     lock (_markers)
     {
         return(_markers.RemoveAll(x => x.ViewMode == viewMode));
     }
 }
示例#2
0
 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
         });
     }
 }
示例#3
0
        private void Display(DBObject marker, TransientDrawingMode viewMode, short colorIndex)
        {
            IntegerCollection intCol
                = new IntegerCollection();

            _tm.AddTransient
            (
                marker,
                viewMode,
                //128,
                colorIndex,
                intCol
            );

            _isDisplaying = true;
        }