示例#1
0
 public void Register(PropertyInfo property, ComboBoxSettingsAttribute settings)
 {
     Conventions.Add(new ComboBoxConvention()
     {
         Match    = new PropertyExactMatch(property),
         Settings = settings
     });
 }
示例#2
0
 public void Register(string propertyName, ComboBoxSettingsAttribute settings)
 {
     Conventions.Add(new ComboBoxConvention()
     {
         Match    = new PropertyNameMatch(propertyName),
         Settings = settings
     });
 }
示例#3
0
 public void Register(Func <PropertyInfo, bool> predicate, ComboBoxSettingsAttribute settings)
 {
     Conventions.Add(new ComboBoxConvention()
     {
         Match = new PropertyDelegateMatch()
         {
             Delegate = predicate
         },
         Settings = settings
     });
 }