void WindowShapeFileTest_Closed(object sender, EventArgs e) { if (_sf != null) { _sf.Dispose(); _sf = null; } }
protected override void ReleaseManagedResources() { _shapeFile.Dispose(); foreach (var kvp in _openDatasets) { if (kvp.Value != null) { kvp.Value.Dataset.Dispose(); } } base.ReleaseManagedResources(); }
protected override void ReleaseManagedResources() { _shapeFile.Dispose(); base.ReleaseManagedResources(); }