Révision 12ddf7ef GES_PAC/ViewModel/EnterAnimalViewModel.cs

Voir les différences:

GES_PAC/ViewModel/EnterAnimalViewModel.cs
95 95

  
96 96
        private void ValidateForm()
97 97
        {
98
            NumRFIDError = NumRFID.Length < 5 ;
98
            NumRFIDError = NumRFID == null || NumRFID.Length < 5;
99 99
            PoidsError = Poids == null;
100 100

  
101 101
            OnPropertyChanged(nameof(NumRFIDError));

Formats disponibles : Unified diff