private void HandleCraftCategoriesPageResponse(int responseID) { Model vm = GetDialogCustomData <Model>(); ClearPageResponses("BlueprintListPage"); DialogResponse response = GetResponseByID("CraftCategoriesPage", responseID); int categoryID = (int)response.CustomData; vm.CraftBlueprints = CraftService.GetPCBlueprintsByCategoryID(GetPC().GlobalID, categoryID); foreach (CraftBlueprint bp in vm.CraftBlueprints) { AddResponseToPage("BlueprintListPage", bp.ItemName, true, bp.ID); } ChangePage("BlueprintListPage"); }