Exemplo n.º 1
0
		static void Main(string[] args)
		{
			Lottery lottery = new Lottery();

			InputData("Enter check talon combination, example : 1,2,5,7,9,19 or more numbers", lottery.RegisterCheckTalon);
			InputData("Enter jackpot combination, example : 1,2,5,7,9,19 or more numbers", lottery.RegisterJackpot);

			var winnigsResult = lottery.GetWinnings();
			if (winnigsResult.Success())
			{
				DisplayWinnigs(winnigsResult);
			}
			else
			{
				DisplayErrorMessages(winnigsResult);
			}
		}
Exemplo n.º 2
0
		public Form1()
		{
			InitializeComponent();
			lottery = new Lottery();
		}