protected void Init() { //intitialze based on country switch (Kernel.Instance.ConfigData.MetadataCountryCode.ToUpper()) { case "US": RatingsDict = new USRatingsDictionary(); break; case "GB": RatingsDict = new GBRatingsDictionary(); break; case "NL": RatingsDict = new NLRatingsDictionary(); break; case "AU": RatingsDict = new AURatingsDictionary(); break; default: RatingsDict = new USRatingsDictionary(); break; } }
/// <summary> /// Inits the specified country. /// </summary> /// <param name="country">The country.</param> protected void Init(string country) { //intitialze based on country switch (country) { case "US": RatingsDict = new USRatingsDictionary(); break; case "GB": RatingsDict = new GBRatingsDictionary(); break; case "NL": RatingsDict = new NLRatingsDictionary(); break; case "AU": RatingsDict = new AURatingsDictionary(); break; default: RatingsDict = new USRatingsDictionary(); break; } Save(); }