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