예제 #1
0
 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);
        }