public bool IsTableSelected(string tableName) { foreach (var table in Tables) { if (table.Name == tableName) { return table.Selected; } } return false; }