示例#1
0
        private static Garage.eGarageOptions getClientChoosement()
        {
            int    clientChoiceInt;
            string clientChoiceStr, error = null;

            do
            {
                if (error != null)
                {
                    Console.WriteLine(error);
                }

                clientChoiceStr = Console.ReadLine();
            }while (!Garage.CheckClientChoosement(clientChoiceStr, out clientChoiceInt, ref error));

            return((Garage.eGarageOptions)clientChoiceInt);
        }