/// <summary> /// Helper method to get the localized value. /// </summary> /// <param name="enumName">The name of the enum, without namespaces.</param> /// <param name="enumValue">The value of the enum to localize.</param> /// <returns></returns> private string getLocalizedString(string enumName, object enumValue) { string resourceKey = string.Format("{0}{1}", enumName, enumValue); return(LocalizedStrings.GetResourceForKey(resourceKey)); }