private void RemoveConnectionLine() { if (_lineGeometry == null) return; _surface.Children.Remove(_path); _path = null; _lineGeometry = null; }