|
|
|
@ -216,7 +216,8 @@ class Program
|
|
|
|
|
case 2:
|
|
|
|
|
Console.Clear();
|
|
|
|
|
Animal animal = Theque.AjouterAnimal();
|
|
|
|
|
ModifierAnimal(animal, Theque.ListeEspeces);
|
|
|
|
|
ModifierNom(animal);
|
|
|
|
|
ModifierAnimal(animal);
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
Console.Clear();
|
|
|
|
@ -297,7 +298,7 @@ class Program
|
|
|
|
|
switch (decision)
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
ModifierAnimal(animal, especetheque);
|
|
|
|
|
ModifierAnimal(animal);
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
Theque.SupprimerAnimal(animal);
|
|
|
|
@ -318,7 +319,7 @@ class Program
|
|
|
|
|
Console.WriteLine("\t\tNuméro de téléphone : " + entite.NumTel);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static private void ModifierAnimal(Animal animal, List<Espece> especetheque)
|
|
|
|
|
static private void ModifierAnimal(Animal animal)
|
|
|
|
|
{
|
|
|
|
|
while (true)
|
|
|
|
|
{
|
|
|
|
@ -372,19 +373,19 @@ class Program
|
|
|
|
|
ModifierAlimentation(animal);
|
|
|
|
|
break;
|
|
|
|
|
case 10:
|
|
|
|
|
ModifierEntite(animal.Petsitter.Entite);
|
|
|
|
|
ModifierEntite(animal.Petsitter);
|
|
|
|
|
break;
|
|
|
|
|
case 11:
|
|
|
|
|
ModifierEntite(animal.Chenil.Entite);
|
|
|
|
|
ModifierEntite(animal.Chenil);
|
|
|
|
|
break;
|
|
|
|
|
case 12:
|
|
|
|
|
ModifierEntite(animal.Veterinaire.Entite);
|
|
|
|
|
ModifierEntite(animal.Veterinaire);
|
|
|
|
|
break;
|
|
|
|
|
case 13:
|
|
|
|
|
ModifierEntite(animal.MagasinAlimentaire.Entite);
|
|
|
|
|
ModifierEntite(animal.MagasinAlimentaire);
|
|
|
|
|
break;
|
|
|
|
|
case 14:
|
|
|
|
|
ModifierEntite(animal.Provenance.Entite);
|
|
|
|
|
ModifierEntite(animal.Provenance);
|
|
|
|
|
break;
|
|
|
|
|
case 19:
|
|
|
|
|
return;
|
|
|
|
@ -397,8 +398,11 @@ class Program
|
|
|
|
|
|
|
|
|
|
static private void ModifierNom(Animal animal)
|
|
|
|
|
{
|
|
|
|
|
Console.Write("\tNom : ");
|
|
|
|
|
animal.Nom = Console.ReadLine();
|
|
|
|
|
while (animal.Nom.Length <= 0 || animal.Nom.StartsWith(" "))
|
|
|
|
|
{
|
|
|
|
|
Console.Write("\tNom : ");
|
|
|
|
|
animal.Nom = Console.ReadLine();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static private void ModifierEspece(Animal animal)
|
|
|
|
|