private void InitializeData() { AvailableFood = sql.GetFood_All().ToDictionary(x => x.Id, x => x); AvailableCommonFood = AvailableFood.Where(p => p.Value.Type == GlobalConfig.common).ToDictionary(p => p.Key, p => p.Value); AvailableFavoriteFood = AvailableFood.Where(p => p.Value.Type == GlobalConfig.favorite).ToDictionary(p => p.Key, p => p.Value); AvailableCustomFood = AvailableFood.Where(p => p.Value.IsCustom == true).ToDictionary(p => p.Key, p => p.Value); AvailableRecipes = sql.GetRecipe_All().ToDictionary(x => x.Id, x => x); AvailablePlans = sql.GetPlan_All().ToDictionary(x => x.Id, x => x); }