/// <summary> /// Close the current database. /// Saves any pending changes first. /// </summary> public void CloseDatabase() { databaseEntry.Reset(); UpdateDatabase(); if (localTAManager != null) { localTAManager.Dispose(); localTAManager = null; } if (localDB != null) { localDB.Dispose(); localDB = null; } }