Esempio n. 1
0
 public static ShoppingProvider Instance()
 {
     if (HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         return(ShoppingSubsiteProvider.CreateInstance());
     }
     return(ShoppingMasterProvider.CreateInstance());
 }
Esempio n. 2
0
        public static ShoppingProvider Instance()
        {
            ShoppingProvider result;

            if (HiContext.Current.SiteSettings.IsDistributorSettings)
            {
                result = ShoppingSubsiteProvider.CreateInstance();
            }
            else
            {
                result = ShoppingMasterProvider.CreateInstance();
            }
            return(result);
        }
Esempio n. 3
0
 static ShoppingSubsiteProvider()
 {
     ShoppingSubsiteProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.SaleSystem.DistributionData.ShoppingData,Hidistro.SaleSystem.DistributionData") as ShoppingSubsiteProvider);
 }