-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSelectApplicationOptionsMenu.cs
More file actions
35 lines (31 loc) · 1.25 KB
/
SelectApplicationOptionsMenu.cs
File metadata and controls
35 lines (31 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using NumberingConsoleApp.CheckDigitVerifier;
using NumberingConsoleApp.NumberGenerator;
namespace NumberingConsoleApp
{
public static class SelectApplicationOptionsMenu
{
public static void SelectApplication()
{
while (true)
{
Console.WriteLine("-----------------------------------------------------------------------");
Console.WriteLine("Enter number to select application from options below and press Enter");
Console.WriteLine("-----------------------------------------------------------------------");
Console.WriteLine("1: Check Digit Verifier\n2: Number Generator\n");
string userSelection1 = Console.ReadLine();
if (userSelection1 == "1")
{
CheckDigitVerifierOptionsMenu.CheckDigitVerifierOptions();
break;
}
else if (userSelection1 == "2")
{
NumberGeneratorOptionsMenu.NumberGeneratorOptions();
break;
}
else
Console.WriteLine("Invalid selection. Please select from one of the options");
}
}
}
}