コード例 #1
0
ファイル: ViewBlueprints.cs プロジェクト: Terallis/SWLOR_NWN
        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");
        }