Example #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
            {
            }
        }
Example #2
0
 private void UpdateSellAllFourDoseOutput(object sender, EventArgs e)
 {
     sellingAllFourDoseOutput.Value = CalculatorLogic.ValueSellingAllFourDose(fourDoseValueInput.Value, totalFourDoseMadeOutput.Value);
 }
Example #3
0
 private void UpdateResourceCostOutput(object sender, EventArgs e)
 {
     resourceCostOutput.Value = CalculatorLogic.TotalResourceCost(herbCostInput.Value, vialOfWaterCostInput.Value, ingredientsCostInput.Value, herbsUsedInput.Value);
 }
Example #4
0
 private void UpdateFourDoseValueOutput(object sender, EventArgs e)
 {
     totalFourDoseMadeOutput.Value = CalculatorLogic.TotalFourDosePotionYield(totalThreeDoseMadeOutput.Value);
 }
Example #5
0
 private void UpdatePricePerPotionOutput(object sender, EventArgs e)
 {
     pricePerPotionOutput.Value = CalculatorLogic.ResourceCostPerPotion(herbCostInput.Value, ingredientsCostInput.Value, vialOfWaterCostInput.Value);
 }
Example #6
0
 private void UpdateTotalThreeDosePotMadeOutput(object sender, EventArgs e)
 {
     totalThreeDoseMadeOutput.Value = CalculatorLogic.TotalThreeDosePotsMade(unfPotsToProcessInput.Value, portableWellCheck.Checked, wastelessHerbloreCheck.Checked);
 }
Example #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);
 }
Example #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);
 }
Example #9
0
 private void UpdateProfitLossFourDose(object sender, EventArgs e)
 {
     profitLossFourDoseOutput.Value = CalculatorLogic.ProfitLossSellingFourDose(resourceCostOutput.Value, sellingAllFourDoseOutput.Value);
 }