public void Dispose() { Path.Dispose(); if (CurrentFocus == this) { UnlockFocus(); } }
protected override void Dispose(bool disposing) { if (disposed) { return; } if (disposing) { currentPath.Dispose(); if (Element != null) { Element.Lines.CollectionChanged -= OnLinesCollectionChanged; } } disposed = true; base.Dispose(disposing); }