示例#1
0
        public void Add(LineMarker m)
        {
            if (markers.Contains(m))
            {
                return;
            }

            markers.Add(m);
        }
示例#2
0
        public void Remove(LineMarker marker)
        {
            if (marker == null)
            {
                throw new ArgumentNullException("marker");
            }
            var m = marker as LineMarker;

            if (markers.Remove(m))
            {
                Redraw(m);
            }
        }
示例#3
0
 public void Remove(LineMarker marker)
 {
     if (marker == null)
         throw new ArgumentNullException("marker");
     var m = marker as LineMarker;
     if (markers.Remove(m))
     {
         Redraw(m);
     }
 }
示例#4
0
        public void Add(LineMarker m)
        {
            if (markers.Contains(m))
                return;

            markers.Add(m);
        }