Пример #1
0
        private void SelectCardPageResponses(int responseID)
        {
            int card = Convert.ToInt32(GetResponseByID("SelectCardPage", responseID).CustomData.ToString());

            if (GetPC().GetLocalInt("PAZAAK_ACTION") == 1)
            {
                ChangePage("SelectDeckSlotPage");
                GetPC().SetLocalInt("PAZAAK_CARD_SELECTED", card);
            }
            else
            {
                NWItem collection = GetPC().GetLocalObject("ACTIVE_COLLECTION");
                PazaakService.RemoveCardFromCollection(card, collection);

                // Rebuild the main page as the collection has changed.
                LoadMainPage();
                ChangePage("MainPage");
            }
        }