Пример #1
0
 public DisplayStringResourceAttribute(string resourceContainer, bool resourceFile, string baseName, Type usingResourceSet, string resourceName, string cultureName)
 {
     DisplayNameValue = (resourceFile) ?
                        AttributeValueHelper.GetStringFromFileResource(resourceContainer, baseName, usingResourceSet, resourceName, cultureName) :
                        AttributeValueHelper.GetStringFromResource(resourceContainer, baseName, usingResourceSet, resourceName, cultureName);
 }
Пример #2
0
 public DisplayStringResourceAttribute(Type type, string baseName, Type usingResourceSet, string resourceName, string cultureName)
 {
     DisplayNameValue = AttributeValueHelper.GetStringFromResource(type, baseName, usingResourceSet, resourceName, cultureName);
 }