public void DeleteTable(string tableName) { var table = DataBase.Tables.First(x => x.Name == tableName); _fileWorker.DeleteTableSources(table); DataBase.Tables.Remove(table); _fileWorker.UpdateDataBaseFile(); }