示例#1
0
        private void HandlePerkDetailsResponses(int responseID)
        {
            Model vm = GetDialogCustomData <Model>();

            switch (responseID)
            {
            case 1:     // Purchase Upgrade / Confirm Purchase

                if (vm.IsConfirmingPurchase)
                {
                    SetResponseText("PerkDetailsPage", 1, "Purchase Upgrade");
                    PerkService.DoPerkUpgrade(GetPC(), vm.SelectedPerkID);
                    vm.IsConfirmingPurchase = false;
                    BuildPerkDetails();
                    SetPageHeader("MainPage", GetMainPageHeader());
                }
                else
                {
                    vm.IsConfirmingPurchase = true;
                    SetResponseText("PerkDetailsPage", 1, "CONFIRM PURCHASE");
                }
                break;
            }
        }