public bool DateValidationItem(ControlInfo firstYear, ControlInfo firstMonth, ControlInfo secondYear, ControlInfo secondMonth) { var validationItem = new DateValidationItem(); validationItem.SetControlInfos(firstYear, firstMonth, secondYear, secondMonth); _validationItems.Add(validationItem); return(true); }
public bool DateValidationItem(Control firstYear, Control firstMonth, Control secondYear, Control secondMonth, string propertyName) { var validationItem = new DateValidationItem(); validationItem.SetControlInfos(firstYear, firstMonth, secondYear, secondMonth, propertyName); _validationItems.Add(validationItem); return(true); }