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.
BowlingScoreApp/Sources/BowlingApp/Saissiseur.cs

57 lines
1.2 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BowlingApp
{
public class Saissiseur
{
public int CollecterReponseMenu()
{
while (true)
{
try
{
int retour = int.Parse(Console.ReadLine());
return retour;
}
catch (Exception e)
{
Afficheur.AfficherErreur("de Saisie veuillez recommencer");
}
}
}
public string CollecteNom()
{
string nom = Console.ReadLine();
return nom;
}
public int CollecteNbr()
{
return CollectQuilleTomber();
}
public int CollectQuilleTomber()
{
while (true)
{
try
{
int nbr = int.Parse(Console.ReadLine());
return nbr;
}
catch (Exception e)
{
Afficheur.AfficherErreur("de Saisie veuillez recommencer");
}
}
}
}
}