Beispiel #1
0
        public void InitializeEpicLayout()
        {
            var epicPack = LsProducts.FirstOrDefault(el => el.ProductId == ("epic_pack"));

            if (epicPack != null)
            {
                PackEpicTitle.Text        = epicPack.Title.Replace("(Seekios)", string.Empty);
                PackEpicPrice.Text        = epicPack.Price;
                PackEpicRefillAmount.Text = epicPack.Description;
            }
        }
Beispiel #2
0
        public void InitializeAdventureLayout()
        {
            var adventurePack = LsProducts.FirstOrDefault(el => el.ProductId == ("adventure_pack"));

            if (adventurePack != null)
            {
                PackAdvTitle.Text        = adventurePack.Title.Replace("(Seekios)", string.Empty);
                PackAdvPrice.Text        = adventurePack.Price;
                PackAdvRefillAmount.Text = adventurePack.Description;
            }
        }
Beispiel #3
0
        public void InitializeExplorationLayout()
        {
            var explorationPack = LsProducts.FirstOrDefault(el => el.ProductId == ("exploration_pack"));

            if (explorationPack != null)
            {
                PackExploTitle.Text        = explorationPack.Title.Replace("(Seekios)", string.Empty);
                PackExploPrice.Text        = explorationPack.Price;
                PackExploRefillAmount.Text = explorationPack.Description;
            }
        }
Beispiel #4
0
        public void InitializeDiscoveryLayout()
        {
            var discoveryPack = LsProducts.FirstOrDefault(el => el.ProductId == ("discovery_pack"));

            if (discoveryPack != null)
            {
                PackDiscoTitle.Text        = discoveryPack.Title.Replace("(Seekios)", string.Empty);
                PackDiscoPrice.Text        = discoveryPack.Price;
                PackDiscoRefillAmount.Text = discoveryPack.Description;
            }
        }
Beispiel #5
0
        public void InitializeObservationLayout()
        {
            var observationPack = LsProducts.FirstOrDefault(el => el.ProductId == ("observation_pack"));

            if (observationPack != null)
            {
                PackObsTitle.Text        = observationPack.Title.Replace("(Seekios)", string.Empty);
                PackObsPrice.Text        = observationPack.Price;
                PackObsRefillAmount.Text = observationPack.Description;
            }
        }
Beispiel #6
0
 private void OnClickBuyEpicPack(object sender, EventArgs args)
 {
     BillingHandler.BuyProduct(LsProducts.FirstOrDefault(el => el.ProductId == "epic_pack"));
 }