Restructuration

This commit is contained in:
2020-11-30 00:19:37 +01:00
parent 1bcaa3c841
commit c3b67ca667
28 changed files with 1082 additions and 452 deletions

View File

@@ -0,0 +1,13 @@
using System.Globalization;
using System.Windows.Controls;
namespace Hermes.Validation {
class MandatoryString : ValidationRule {
public override ValidationResult Validate(object value, CultureInfo cultureInfo) {
if(string.IsNullOrWhiteSpace((string) value)) {
return new ValidationResult(false, "Ce champ est obligatoire");
}
return ValidationResult.ValidResult;
}
}
}