public void Load() { Subscriptions = CatalogueDao.GetSubscriptionData(); Gifts = SubscriptionDao.GetSubscriptionGifts() .Select(x => new SubscriptionGift(x, CatalogueManager.Instance.GetItem(x.SaleCode))) .OrderBy(x => x.Data.DurationRequirement) .ToList(); }
public void Load() { Pages = CatalogueDao.GetPages().Select(x => new CataloguePage(x)).ToList(); Items = CatalogueDao.GetItems().Select(x => new CatalogueItem(x)).ToList(); Packages = CatalogueDao.GetPackages().Select(x => new CataloguePackage(x)).ToList(); Discounts = CatalogueDao.GetDiscounts(); DeserialisePageData(); }
public void Load() { Pages = CatalogueDao.GetPages().Select(x => new CataloguePage(x)).ToList(); Items = CatalogueDao.GetItems().Select(x => new CatalogueItem(x)).ToList(); Packages = CatalogueDao.GetPackages().Select(i => new CataloguePackage(i, Items.FirstOrDefault(x => x.Data.SaleCode == i.SaleCode))).ToList(); Effects = EffectDao.GetEffectSettings().ToDictionary(x => x.EffectId, x => new EffectType(x)); Discounts = CatalogueDao.GetDiscounts(); DeserialisePageData(); }