public override void OpenConnection(string databasename)
{
try
{
// if there is no connection
if (sqlite_connection == null)
{
Logger.addMessage(Logger.LogType.Info, "SQLite folder location: " + sqliteDatabaseLocation);
sqlite_connection = new SQLiteConnection("Data Source=" + sqliteDatabaseLocation + databasename + ".sqlite");
}
sqlite_connection.Open();
}
catch (Exception ex)
{
Logger.addMessage(Logger.LogType.Error, "Unable to open connection to SQLite database." + ex.ToString());
}
}