DevTreks.Extensions/NPVCalculators/OCs/OCCalculator.cs
/// <summary>
/// Get the fuel vars to be be used by all of the inputs in an operation
/// </summary>
Get the fuel vars to be be used by all of the inputs in an operation
Get the fuel vars to be be used by all of the inputs in an operation
private void GetFuelVars(Machinery1Input machInput, string calculatorType, 
            out int equivPTOHP, out int maxPTOHP, out double fuelCost)
        {
            equivPTOHP = 0;
            maxPTOHP = 0;
            fuelCost = 0;
            if (calculatorType
                == AgBudgetingHelpers.CALCULATOR_TYPES.agmachinery.ToString())
            {
                equivPTOHP = machInput.Constants.HPPTOEquiv;
                maxPTOHP = machInput.Constants.HPPTOMax;
                fuelCost = machInput.FuelCost;
            }
        }
private void GetFuelVars ( Machinery1Input machInput , string calculatorType , out int equivPTOHP , out int maxPTOHP , out double fuelCost ) { equivPTOHP = 0 ; maxPTOHP = 0 ; fuelCost = 0 ; if ( calculatorType == AgBudgetingHelpers . CALCULATOR_TYPES . agmachinery . ToString ( ) ) { equivPTOHP = machInput . Constants . HPPTOEquiv ; maxPTOHP = machInput . Constants . HPPTOMax ; fuelCost = machInput . FuelCost ; } }
Get the fuel vars to be be used by all of the inputs in an operation
Get the fuel vars to be be used by all of the inputs in an operation
machInput
Machinery1Input
calculatorType
string
int
out
double
out