Exemplo n.º 1
0
        //Find any registered users phone number
        public static void FindNumber()
        {
            //ask for username of desired member
            Console.Write("Enter username: "******"=======================================");
                    Console.WriteLine("Users number is (+61) " + members[i, 3]);
                    Console.WriteLine("=======================================");
                    return;
                }
            }
            Incorrect = true;

            if (Incorrect) //else cannot find user try again or exit
            {
                Console.WriteLine("Cannot find username");
                Console.Write("Choose 1 to try again or 0 to exit: ");

                bool SwitchBreak = false;
                while (!SwitchBreak)
                {
                    switch (Console.ReadLine())
                    {
                    case "1":
                        FindNumber();
                        SwitchBreak = true;
                        break;

                    case "0":
                        Program.StaffMenu();
                        SwitchBreak = true;
                        break;

                    default:
                        Console.WriteLine("Invalid selection");
                        Console.Write("\nPlease make a selection (1 or 0): ");
                        break;
                    }
                }
            }
        }