gestion des conflits

pull/18/head
Leana BESSON 2 years ago
commit 12d9936f3b

@ -384,7 +384,7 @@ class Program
Console.WriteLine("\tCHENIL : ");
AfficherEntite(animal.Chenil);
Console.WriteLine("\tVETERINAIRE : ");
AfficherEntite(animal.Veterinaire);
AfficherVeterinaire(animal.Veterinaire);
Console.WriteLine("\tMAGASIN ALIMENTAIRE : ");
AfficherEntite(animal.MagasinAlimentaire);
Console.WriteLine("\tREFUGE, ELEVAGE, CHENIL DE PROVENANCE : ");
@ -434,7 +434,7 @@ class Program
/*!
* \fn AfficherVeterinaire(Veterinaire veterinaire)
* \brief Displays information on the selected entity
* \brief Displays information about the selected veterinarian
* \param veterinaire Veterinaire - Veterinarian selected to display
*/
static private void AfficherVeterinaire(Veterinaire veterinaire)
@ -445,6 +445,11 @@ class Program
Console.WriteLine("\t\tNuméro de téléphone : " + Convert.ToInt32(veterinaire.NumTel));
}
/*!
* \fn ModifierAnimal(Animal animal)
* \brief Displays the pet's menu of items to be modified, the user enters the number of the item to be modified, launches the function of the item to be modified or returns to the pet display
* \param animal Animal - Pet to modify
*/
static private void ModifierAnimal(Animal animal)
{
while (true)
@ -527,6 +532,11 @@ class Program
}
}
/*!
* \fn ModifierNom(Animal animal)
* \brief The user enters the name of the pet to be modified, checks if it is valid, asks the question again until the name is valid, changes the pet's name.
* \param animal Animal - Pet to modify
*/
static private void ModifierNom(Animal animal)
{
Console.WriteLine("\tNom : ");
@ -541,6 +551,11 @@ class Program
animal.Nom = nom;
}
/*!
* \fn ModifierEspece(Animal animal)
* \brief The user enters the species name of the pet to be modified, checks if the pet exists, asks the question again until the pet written does not exist, then changes the animal species
* \param animal Animal - animal Animal - Pet to modify
*/
static private void ModifierEspece(Animal animal)
{
Console.WriteLine("\tEspèce (appuyer sur entrée pour passer): ");
@ -556,6 +571,11 @@ class Program
animal.Espece = espece;
}
/*!
* \fn ModifierSexe(Animal animal)
* \brief The user enters the species name of the pet to be modified, checks if the species exists, asks the question again until the species written does not exist, then changes the pet sexe
* \param animal Animal - Pet to modify
*/
static private void ModifierSexe(Animal animal)
{
string? sexe = null;

@ -40,3 +40,4 @@ namespace Model
}
}
}

Loading…
Cancel
Save