Exemplo n.º 1
0
 public void SQLiteConnected(SQLiteConn _lc)
 {
     lc = _lc; chkSQLite.Checked = true;
     showTablesToolStripMenuItem.Enabled  = true;
     findColumnsToolStripMenuItem.Enabled = false;
     GUIUpdateConnected(lc.DatabasePath);
 }
        private void Proceed()
        {
            var lc = new SQLiteConn(txtDatabasePath.Text, txtPassword.Text, txtVersion.Text);

            try { lc.OpenConnection(); }
            catch (Exception ex) { MessageBox.Show("Database Connection Failed\n" + ex.ToString()); return; }
            main.SQLiteConnected(lc);
            this.Close();
        }
Exemplo n.º 3
0
        private void disconnect()
        {
            try { jc.CloseConnection(); }
            catch (Exception) { }

            try { mc.CloseConnection(); }
            catch (Exception) { }

            try { lc.CloseConnection(); }
            catch (Exception) { }

            try { msc.CloseConnection(); }
            catch (Exception) { }

            jc = null; mc = null; lc = null; msc = null;
        }