private void RecipeListPageInit(DialogPage page) { var model = GetDataModel <Model>(); page.Header = "Please select a recipe."; foreach (var(key, value) in Craft.GetRecipesBySkillAndCategory(model.SelectedSkill, model.SelectedCategory)) { page.AddResponse(value.Name, () => { model.SelectedRecipe = key; ChangePage(RecipePageId); }); } }