Console Application

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

When using a Console Application how can I create a menu with two
options and ask the user to choose option 1 or 2.

If the user chooses option 1 then call Packer.Run(); for option 2 call
Initializer.Run();

Thanks,
Miguel
 
Psyudo code:

Console.WriteLine("Please choose from the following:");

Console.WriteLine("1. Run Packer");
Console.WriteLine("2. Run Initializer");

String a = Console.ReadLine()

switch a
{
case "1":
Packer.Run();
break;
case "2":
Initializer.Run();
}

-Scott
 
Back
Top