/// <summary>
 /// Initializes a new instance of the CategoryOrderLocAttribute.
 /// </summary>
 /// <param name="resourceId">String resource id of the category name.</param>
 /// <param name="order">Category order.</param>
 public CategoryOrderLocAttribute(string resourceId, int order)
     : base(LocalizedStrings.GetString(resourceId), order)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EnumDisplayNameLocAttribute"/> class using specified resource id for the display name.
 /// </summary>
 /// <param name="resourceId">String resource id.</param>
 public EnumDisplayNameLocAttribute(string resourceId)
     : base(LocalizedStrings.GetString(resourceId))
 {
 }
Example #3
0
 public DisplayNameLocAttribute(string resourceId, params object[] args)
     : base(LocalizedStrings.GetString(resourceId).Put(args))
 {
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DisplayNameLocAttribute"/> class using specified resource id for the display name.
 /// </summary>
 /// <param name="resourceId">String resource id.</param>
 /// <param name="arg">Arg for formatted string.</param>
 public DisplayNameLocAttribute(string resourceId, string arg)
     : base(LocalizedStrings.GetString(resourceId).Put(LocalizedStrings.GetString(arg)))
 {
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the CategoryLocAttribute class using the specified resource id for category name.
 /// </summary>
 /// <param name="resourceId">String resource id to use for category name.</param>
 public CategoryLocAttribute(string resourceId)
     : base(LocalizedStrings.GetString(resourceId))
 {
 }
 /// <summary>
 /// Initializes a new instance of <see cref="DescriptionLocAttribute"/> class with description.
 /// </summary>
 /// <param name="resourceId">Id of string resource.</param>
 /// <param name="arg">Arg for formatted string.</param>
 public DescriptionLocAttribute(string resourceId, string arg)
     : base(LocalizedStrings.GetString(resourceId).Put(LocalizedStrings.GetString(arg)))
 {
 }