private void SetAnimalStatistics() { if (Animal.ID == AnimalID) { AnimalName = Animal.Name; AnimalDead = BoolToString(Animal.IsDead); AnimalInShelter = BoolToString(Animal.InShelter); AnimalAdopted = BoolToString(StatisticModel.AnimalAdopted(Animal.ID)); AnimalWalks = StatisticModel.TotalAnimalWalks(Animal.ID).ToString(); AnimalEscapes = StatisticModel.TotalAnimalEscapes(Animal.ID).ToString(); AnimalMedicalRecords = StatisticModel.TotalAnimalMedicalRecords(Animal.ID).ToString(); AnimalIncidents = StatisticModel.TotalAnimalIncidents(Animal.ID).ToString(); AnimalStays = StatisticModel.TotalAnimalStays(Animal.ID).ToString(); AnimalFood = ((StatisticModel.TotalAnimalDays(Animal.ID) * Animal.FeedRation) / 1000).ToString(); AnimalDays = StatisticModel.TotalAnimalDays(Animal.ID).ToString(); AnimalCosts = StatisticModel.TotalAnimalCosts(Animal.ID).ToString(); } else { MessageBox.Show("Zvíře nenalezeno."); } }