예제 #1
0
파일: ConsoleUI.cs 프로젝트: bjd54321/Ex03
        /// <summary>
        /// Inflates tires of given vehicle
        /// </summary>
        private void inflateTires()
        {
            string licenceNumber = getLicenceNumberFromUser();

            try
            {
                m_Garage.Inflate(licenceNumber);
                write("Inflating successful!");
            }
            catch (NoSuchVehicleException e)
            {
                write("No such vehicle");
            }
        }