private static string GetLocalizedPropertyName(VirtualProperty property)
 {
     if (ResourceManager != null)
     {
         string str = ResourceManager.GetString("VirtualProperty_" + property.PropertyName);
         if (!string.IsNullOrEmpty(str))
         {
             return str;
         }
     }
     return property.PropertyName;
 }
 private string GetLocalizedPropertyName(VirtualProperty property)
 {
     Tuple<int, int> tuple;
     if (this.PropertyFieldMap.TryGetValue(property.PropertyId, out tuple))
     {
         WdxFieldInfo info = base.Fields[tuple.Item1];
         if (((info.FieldType != 7) && (info.Units != null)) && (info.Units.Length > tuple.Item2))
         {
             StringBuilder builder = new StringBuilder();
             builder.Append(this.GetLocalizedString(info.FieldName));
             builder.Append('.');
             builder.Append(this.GetLocalizedString(info.Units[tuple.Item2]));
             return builder.ToString();
         }
         return this.GetLocalizedString(info.FieldName);
     }
     return property.PropertyName;
 }
 public static int RegisterProperty(string name, int groupId, Type type, int length, TypeConverter converter, VirtualPropertyOption options, Func<VirtualProperty, string> getLocalizedNameCallback)
 {
     VirtualProperty property;
     if (PropertyMap.TryGetValue(name, out property))
     {
         throw new ArgumentException(string.Format("Property with name '{0}' already registered.", name));
     }
     if ((converter == null) && type.IsEnum)
     {
         converter = TypeDescriptor.GetConverter(type);
     }
     property = new VirtualProperty(PropertyList.Count, groupId, name, type, length, converter, options, getLocalizedNameCallback);
     PropertyList.Add(property);
     PropertyMap.Add(name, property);
     FAllSet = null;
     FVisibleSet = null;
     return property.PropertyId;
 }