Example #1
0
 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();
 }
Example #2
0
 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();
 }
Example #3
0
 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();
 }