예제 #1
0
        private int getEngineCapacity()
        {
            string engineCapacityStr;

            ConsoleMsg.EngineCapacity();
            do
            {
                engineCapacityStr = Console.ReadLine();
            }while(!ValidationInput.CheckEngineCapacity(engineCapacityStr));

            int result;

            int.TryParse(engineCapacityStr, out result);
            return(result);
        }