Exemple #1
0
        static void RunAsMileage(TaxiStation footInHands, ref Car tmpCar)
        {
            LoggerMaster.LoggerM.Debug("In class: " + nameof(Program) + " : " + "Try call: " + MethodBase.GetCurrentMethod());

            if (tmpCar == null)
            {
                Console.WriteLine("Не выбран авто.");
                return;
            }

            if (!(tmpCar as CarIface).SetDriver)
            {
                Console.WriteLine("У данного авто нет водителя. Выберите другой авто.");
                return;
            }

            if (tmpCar != null)
            {
                footInHands.ResultMoney += footInHands.RunAsMileage(tmpCar);
            }
            else
            {
                Console.WriteLine("Не выбран автомобиль.");
            }


            LoggerMaster.LoggerM.Debug("In class: " + nameof(Program) + " : " + "Was called: " + MethodBase.GetCurrentMethod());
        }