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