Beispiel #1
0
 public static void Process(int choice)
 {
     Console.Clear();
     switch (choice)
     {
         case 1:
             {
                 AddOrder();
                 break;
             }
         case 2:
             {
                 SearchOrder();
                 break;
             }
         case 3:
             {
                 FindCustomer();
                 break;
             }
         case 4:
             {
                 ShowAllOrder();
                 break;
             }
         case 5:
             {
                 MenuUser.CreateUserMenu();
                 break;
             }
     }
     CreateMenu();
 }
Beispiel #2
0
        public static void Login()
        {
            int permiss = MenuUser.CreateUserMenu();

            if (permiss == 1)
            {
                MenuUser.CreatAdminMenu();
            }
            else if (permiss == 0)
            {
                MenuUser.CreatMemberMenu();
            }
            else
            {
                Console.Clear();
                Console.WriteLine("Can't found you!!!");
                Login();
            }
        }