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(); }
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; }