internal static void RefreshViewDefinitions() { viewList.Clear(); using (var db = new CommenceDatabase()) { foreach (string viewName in ViewNames.Keys) { viewList.Add(db.GetViewDefinition(viewName)); } } viewTypes = viewList.Select(s => s.Type).Distinct(); }