-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
67 lines (63 loc) · 2.17 KB
/
Program.cs
File metadata and controls
67 lines (63 loc) · 2.17 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ContactManager
{
public class Program
{
public static void Main(string[] args)
{
while (true)
{
Console.Clear();
Console.WriteLine("-------------------------");
Console.WriteLine("1- Input the number");
Console.WriteLine("2- The numbers");
Console.WriteLine("3- Delete a number");
Console.WriteLine("4- Add the speed dial");
Console.WriteLine("5- Speed dial");
Console.WriteLine("6- Block");
Console.WriteLine("7- Blocked");
Console.WriteLine("8- Exit");
Console.WriteLine("-------------------------");
int input;
if (!int.TryParse(Console.ReadLine(), out input))
{
Console.WriteLine("Invalid input, please enter a number.");
continue;
}
switch (input)
{
case 1:
Record.record();
break;
case 2:
NumberList.numberlist();
break;
case 3:
DeleteNumber.deletenumber();
break;
case 4:
AddSpeedDial.speeddial();
break;
case 5:
ListSpeedDial.listspeeddial();
break;
case 6:
Block.block();
break;
case 7:
BlockList.blocklist();
break;
case 8:
Console.WriteLine("Pls press the enter");
return;
}
Console.WriteLine("Press any key to continue...");
Console.ReadKey();
}
}
}
}