示例#1
0
        private void RemoveDatabase(DBConfig.Database database)
        {
            Program.DatabaseConfig.Databases.Remove(database);

            string  filepath = FileSystem.GetDbFilePath(database);
            FsError error;

            FileSystem.PerformFileAction(() => File.Delete(filepath), out error);
            if (error != null)
            {
                MessageBox.Show("An error occurred deleting the cached database file.");
            }
        }