예제 #1
0
 /// <summary>
 /// Creates a new object.
 /// </summary>
 /// <param name="key">The index of the string to look up.</param>
 public LocalisedDescriptionAttribute(string key) : base(Localise.Lookup(key))
 {
 }
 /// <summary>
 /// Creates a new object.
 /// </summary>
 /// <param name="key">The index of the string to look up.</param>
 public LocalisedCategoryAttribute(string key) : base(Localise.Lookup(key))
 {
 }
 /// <summary>
 /// Adds leading text to the category to force the sort order in a property grid.
 /// </summary>
 /// <param name="key"></param>
 /// <param name="prefix"></param>
 /// <returns></returns>
 public static string AddLeadingSortText(string key, string prefix)
 {
     return(String.Format("{0} {1}", prefix, Localise.Lookup(key)));
 }
 /// <summary>
 /// Creates a new object.
 /// </summary>
 /// <param name="key">The index of the string to look up.</param>
 public LocalisedDisplayNameAttribute(string key)
 {
     _Key = key;
     _OriginalDisplayName = Localise.Lookup(key);
 }