Révision 3fef487c GES_PAC/Model/SerieAnimal.cs

Voir les différences:

GES_PAC/Model/SerieAnimal.cs
83 83

  
84 84
            return $"{timeInChamber.Hours:00}:{timeInChamber.Minutes:00}" + (IsTimeWarning() ? "⚠" : "");
85 85
        }
86
        public int GetMinInChamber()
87
        {
88
            if (Mesures.Count == 0)
89
                return 0;
90
            return (DateTime.Now - GetFirstMeasure().Time).Minutes;
91
        }
86 92
        
87 93
    }
88 94
}

Formats disponibles : Unified diff