private void mnuDiconnect_Click(object sender, EventArgs e) { if (m_dsProvider != null) { m_dsProvider.Close(); m_dsProvider.Dispose(); m_dsProvider = null; UpdateControls(); UpdateDataGridView(null); UpdateMessage("Data source has been disconnected"); } }
public void Dispose() { _dataSourceProvider.Dispose(); }