-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
44 lines (42 loc) · 1.15 KB
/
Copy pathProgram.cs
File metadata and controls
44 lines (42 loc) · 1.15 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
using System.Net;
using Opp;
class Program
{
public static void Main()
{
Console.WriteLine("1.Create Fruit");
Console.WriteLine("2.View Orders");
Console.WriteLine("3.Shopping");
Console.WriteLine("4.Exit");
ManagementFruit managementFruit = new ManagementFruit();
int choose;
do
{
Console.WriteLine("Input your choose");
choose = Convert.ToInt32(Console.ReadLine());
switch (choose)
{
case 1:
{
managementFruit.CreateFruit();
break;
}
case 2:
{
managementFruit.PrintOrder();
break;
}
case 3:
{
managementFruit.ShoppingItem();
break;
}
case 4:
{
Console.WriteLine("GoodBye");
break;
}
}
}while (choose != 4);
}
}