Example #1
0
        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");
            }
        }
Example #2
0
 public void Dispose()
 {
     _dataSourceProvider.Dispose();
 }