public void Free() { if (_canvasViewer != null && _canvasViewer.Canvas != null && _canvasViewer.Canvas.PixelInfoSubscribers != null) { _canvasViewer.Canvas.PixelInfoSubscribers.Remove(this); _canvasViewer = null; } if (_xianJieDictionary != null) { _xianJieDictionary.Dispose(); _xianJieDictionary = null; _landTypeDictionary.Dispose(); _landTypeDictionary = null; } if (_cursorInfoProviders != null) { _cursorInfoProviders.Clear(); } }
public void Dispose() { if (_landTypeDictionary != null) { _landTypeDictionary.Dispose(); _landTypeDictionary = null; _xianJieDictionary.Dispose(); _xianJieDictionary = null; } }