public static void Go(Customer customer)
 {
     customer.TaxForm     = null;
     customer.ActionType  = ActionType.TaxEuroCalculation;
     customer.TaxEuroForm = new TaxEuroForm(customer);
     TaxEuroCalculation.TaxCalculationProcess(Bot, customer);
 }
Exemple #2
0
        public (string, int) GetCalcTaxStageText()
        {
            switch (_calcTaxStage)
            {
            case 1:
                return("\U0001F3AB Введите год выпуска автомобиля:", _calcTaxStage);

            case 2:
                return("\U000026FD Выберите тип двигателя:", _calcTaxStage);

            case 3:
                return("\U00002747 Введите объём двигателя (куб.см):", _calcTaxStage);

            default:
                string tax = TaxEuroCalculation.CalculateTax(this);
                LogService.PrintLogText($"{_Customer.FirstName} {_Customer.LastName}", "calculated customs tax");
                return(tax, -1);
            }
        }
Exemple #3
0
        public static void Go(Customer customer)
        {
            ActiveCustomersCollection.TryGetValue(customer.ChatId, out customer);
            if (customer == null)
            {
                return;
            }
            switch (customer.ActionType)
            {
            case ActionType.TaxCalculation:
                TaxCalculation.TaxCalculationProcess(Bot, customer);
                break;

            case ActionType.TaxEuroCalculation:
                TaxEuroCalculation.TaxCalculationProcess(Bot, customer);
                break;

            default:
                break;
            }
        }