Пример #1
0
 protected override void SetValidationRules(List <IValidationRule> validationRules)
 {
     base.SetValidationRules(validationRules);
     validationRules.Add(ValidationRule.CreateErrorRule(() => SelectedEmployee));
     validationRules.Add(ValidationRule.CreateErrorRule(() => SelectedBranch));
     validationRules.Add(ValidationRule.CreateErrorRule(() => SelectedDepartment));
     validationRules.Add(ValidationRule.CreateErrorRule(() => SelectedJob));
 }
Пример #2
0
 protected override void SetValidationRules(List <IValidationRule> validationRules)
 {
     base.SetValidationRules(validationRules);
     validationRules.Add(ValidationRule.CreateErrorRule(() => Name));
 }