Example #1
0
 public static void AddValidationRule(this ComboBox comboBox, eValidationRule validationRule)
 {
     if (validationRule == eValidationRule.CannotBeEmpty)
     {
         comboBox.AddValidationRule(new EmptyValidationRule());
     }
 }