Exemplo n.º 1
0
 private static void ShowResult(A02PBallGenerator set)
 {
     Clear();
     WriteLine("\n Powerball Numbers:");
     WriteLine(" -----------------------------------------------------------------");
     WriteLine(set);
     Write("\n Press 'Y' to continue, 'N' to end: ");
 }
Exemplo n.º 2
0
        private static void Main()
        {
            char key;

            do
            {
                var set = new A02PBallGenerator();
                do
                {
                    ShowResult(set);
                }while ((key = char.ToUpper(ReadKey().KeyChar)) != 'Y' && key != 'N');
            }while (key == 'Y');
        }