Console Application

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
 
S

Scott M.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top