Exemple #1
0
        private void fillEnergy(ClientCard i_ClientCard)
        {
            string amount;
            string fuelType;
            bool   succesFillEnergy = false;

            while (!succesFillEnergy)
            {
                try
                {
                    m_UI.GetDataForFillEnergy(i_ClientCard.Vehicle.Engine, out amount, out fuelType);
                    i_ClientCard.Vehicle.FillEnergy(amount, fuelType);
                    succesFillEnergy = true;
                }
                catch (Exception ex)
                {
                    m_UI.Print(ex.Message);
                    m_UI.ToContinueMessage();
                }
            }
        }