You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
2.6 KiB

using Model;
namespace MyProject;
class Program
{
static void Main(string[] args)
{
menusPrincipal();
//testdebase();
//testCompte();
//testAnimal();
//testRace();
}
private static void menusPrincipal()
{
Console.WriteLine("Menus principal");
Console.WriteLine("1- Les espèces");
Console.WriteLine("2- Le animaux");
Console.WriteLine("9- Quitter");
Console.Write("Entrer votre choix : ");
int choix = Convert.ToInt32(Console.ReadLine());
switch (choix)
{
case 1:
menusEspece();
break;
case 2:
menusAnimal();
break;
case 9:
return;
default:
Console.WriteLine("Choix incorrect");
break;
}
}
private static void menusEspece()
{
Console.WriteLine("Menus des espèces");
Console.WriteLine("1- Afficher les espèces");
Console.WriteLine("2- ");
Console.WriteLine("9- Quitter");
Console.Write("Entrer votre choix : ");
int choix = Convert.ToInt32(Console.ReadLine());
switch (choix)
{
case 1:
break;
case 9:
return;
default:
Console.WriteLine("Choix incorrect");
break;
}
}
private static void menusAnimal()
{
Console.WriteLine("Menus des animaux");
Console.WriteLine("1- Afficher les animaux");
Console.WriteLine("2- ");
Console.WriteLine("9- Quitter");
Console.Write("Entrer votre choix : ");
int choix = Convert.ToInt32(Console.ReadLine());
switch (choix)
{
case 1:
break;
case 9:
return;
default:
Console.WriteLine("Choix incorrect");
break;
}
}
private static void testdebase()
{
HashSet<Espece> animaux = new HashSet<Espece>();
animaux.Add(new("Chien", "Les chiens sont l'un des animaux les plus populaires et appréciés dans le monde entier."));
animaux.Add(new("Chat", "Les chats sont les meilleurs animaux pour faire de la ronron thérapie."));
animaux.Add(new("Hamster", "Les hamster meurent facilement."));
Race boxer = new("Boxer");
//chien.afficherInfoUtile();
}
void testAnimal()
{
}
void testRace()
{
}
}