Exemple #1
0
 public static void SetMobileSkinLocale(Customer c)
 {
     if (!LocaleManagement.LocaleIsMobile(c.LocaleSetting))
     {
         c.LocaleSetting = LocaleManagement.GetMobileLocaleMapping(c.LocaleSetting);
     }
 }
Exemple #2
0
 public static void SetDesktopSkinLocale(Customer c, int SkinID)
 {
     if (c.SkinID == MobilePlatform.SkinId || SkinID == MobilePlatform.SkinId)
     {
         c.SkinID = AppLogic.GetStoreSkinID(AppLogic.StoreID());
     }
     else
     {
         c.SkinID = SkinID;
     }
     if (!LocaleManagement.LocaleIsDesktop(c.LocaleSetting))
     {
         c.LocaleSetting = LocaleManagement.GetDesktopLocaleMapping(c.LocaleSetting);
     }
 }