示例#1
0
        private void UpdateTotalUnfPotsMade(object sender, EventArgs e)
        {
            totalUnfPotsMadeOutput.Value = CalculatorLogic.TotalUnfPotsMade(herbsUsedInput.Value, portableWellCheck.Checked, wastelessHerbloreCheck.Checked);

            if (selfmadeUnfsCheck.Checked == true)
            {
                unfPotsToProcessInput.Value = CalculatorLogic.TotalUnfPotsMade(herbsUsedInput.Value, portableWellCheck.Checked, wastelessHerbloreCheck.Checked);
            }
            else
            {
            }
        }
示例#2
0
 private void UpdateSellAllFourDoseOutput(object sender, EventArgs e)
 {
     sellingAllFourDoseOutput.Value = CalculatorLogic.ValueSellingAllFourDose(fourDoseValueInput.Value, totalFourDoseMadeOutput.Value);
 }
示例#3
0
 private void UpdateResourceCostOutput(object sender, EventArgs e)
 {
     resourceCostOutput.Value = CalculatorLogic.TotalResourceCost(herbCostInput.Value, vialOfWaterCostInput.Value, ingredientsCostInput.Value, herbsUsedInput.Value);
 }
示例#4
0
 private void UpdateFourDoseValueOutput(object sender, EventArgs e)
 {
     totalFourDoseMadeOutput.Value = CalculatorLogic.TotalFourDosePotionYield(totalThreeDoseMadeOutput.Value);
 }
示例#5
0
 private void UpdatePricePerPotionOutput(object sender, EventArgs e)
 {
     pricePerPotionOutput.Value = CalculatorLogic.ResourceCostPerPotion(herbCostInput.Value, ingredientsCostInput.Value, vialOfWaterCostInput.Value);
 }
示例#6
0
 private void UpdateTotalThreeDosePotMadeOutput(object sender, EventArgs e)
 {
     totalThreeDoseMadeOutput.Value = CalculatorLogic.TotalThreeDosePotsMade(unfPotsToProcessInput.Value, portableWellCheck.Checked, wastelessHerbloreCheck.Checked);
 }
示例#7
0
 private void UpdateCostPerUnfOutput(object sender, EventArgs e)
 //passes information over to the Logic class when you leave the herbcostinput or vialofwatercostinput boxes
 {
     costPerUnfOutput.Value = CalculatorLogic.UnfinishedPotionCost(herbCostInput.Value, vialOfWaterCostInput.Value);
 }
示例#8
0
 private void UpdateDoseOutputs(object sender, EventArgs e)
 //passes information over to the Logic class when you leave the ingredientsCostInput or costPerUnfOutput boxes
 {
     costPer3DoseOutput.Value = CalculatorLogic.FinishedThreeDoseCalc(ingredientsCostInput.Value, costPerUnfOutput.Value);
     costPer1DoseOutput.Value = CalculatorLogic.FinishedOneDoseCalc(costPer3DoseOutput.Value);
 }
示例#9
0
 private void UpdateProfitLossFourDose(object sender, EventArgs e)
 {
     profitLossFourDoseOutput.Value = CalculatorLogic.ProfitLossSellingFourDose(resourceCostOutput.Value, sellingAllFourDoseOutput.Value);
 }