/// <summary> /// 이 처리기를 삭제하여 추가를 담당하는 모든 단추를 제거합니다. /// </summary> /// <param name="disposeManagedResources">Disposes of the resources.</param> protected virtual void Dispose(bool disposeManagedResources) { if (!_disposed) { // 추가 된 컨트롤을 제거합니다. RemoveControls(); if (disposeManagedResources) { if (_addShapeFunction != null && !_addShapeFunction.IsDisposed) { _addShapeFunction.Dispose(); } _geoMap = null; _activeLayer = null; _moveVertexFunction = null; } _disposed = true; } }
/// <summary> /// Disposes this handler, removing any buttons that it is responsible for adding. /// </summary> /// <param name="disposeManagedResources">Disposes of the resources.</param> protected virtual void Dispose(bool disposeManagedResources) { if (!_disposed) { // One option would be to leave the non-working tools, // but if this gets disposed we should clean up after // ourselves and remove any added controls. RemoveControls(); if (disposeManagedResources) { if (_addShapeFunction != null && !_addShapeFunction.IsDisposed) { _addShapeFunction.Dispose(); } _geoMap = null; _activeLayer = null; _moveVertexFunction = null; } _disposed = true; } }