// FIX : TA7892 /// <summary> /// Parses a setting from the server and loads it into the /// POSSettings, if valid. /// </summary> /// <param name="setting">The setting to parse.</param> public static void LoadSetting(LicenseSettingValue setting) { try { var param = (LicenseSetting)setting.Id; switch (param) { case LicenseSetting.EnableAnonymousMachineAccounts: mMachineAccounts = Convert.ToBoolean(setting.Value, CultureInfo.InvariantCulture); break; case LicenseSetting.PlayWithPaper: m_playWithPaper = Convert.ToBoolean(setting.Value, CultureInfo.InvariantCulture); break; case LicenseSetting.AccrualEnabled: m_accrualsEnabled = Convert.ToBoolean(setting.Value, CultureInfo.InvariantCulture); break; case LicenseSetting.EnableTXPayouts: m_txPayoutsEnabled = Convert.ToBoolean(setting.Value, CultureInfo.InvariantCulture); break; } } catch (Exception) { } }
// Rally TA7897 /// <summary> /// Parses a license setting from the server and loads it into the /// PlayerCenterSettings, if valid. /// </summary> /// <param name="setting">The license setting to parse.</param> public void LoadSetting(LicenseSettingValue setting) { LicenseSetting param = (LicenseSetting)setting.Id; try { switch (param) { case LicenseSetting.CreditEnabled: CreditEnabled = Convert.ToBoolean(setting.Value, CultureInfo.InvariantCulture); break; //US4120 case LicenseSetting.NDSalesMode: NDSalesMode = Convert.ToBoolean(setting.Value, CultureInfo.InvariantCulture); break; case LicenseSetting.ForceWholeProductPoints: WholePoints = Convert.ToBoolean(setting.Value, CultureInfo.InvariantCulture); break; } } catch (Exception e) { throw new PlayerCenterException(string.Format(CultureInfo.CurrentCulture, Resources.InvalidSetting, setting.Id, setting.Value), e); } }
/// <summary> /// Parses the specified setting and loads it into the object, if /// valid. /// </summary> /// <param name="setting">The license setting to parse.</param> /// <exception cref="GameTech.Elite.Base.InvalidModuleSettingException"> /// The specified setting was invalid.</exception> public override void LoadSetting(LicenseSettingValue setting) { try { switch (setting.Id) { default: base.LoadSetting(setting); break; } } catch (InvalidModuleSettingException) { throw; } catch (Exception ex) { throw new InvalidModuleSettingException(setting, ex); } }