private void DisplayDinnerPartyCost() { dinnerParty.NumberOfPeople = (int)nudPeople.Value; dinnerParty.CalculateCostOfDecorations(chbFancyDecorations.Checked); dinnerParty.SetHealthyOption(chbHealthyOption.Checked); decimal Cost = dinnerParty.CalculateCost(chbHealthyOption.Checked); lblCost.Text = Cost.ToString("c"); // TestData(); }
private void DisplayDinnerPartyCost() { decimal Cost = dinnerParty.CalculateCost(healthyBox.Checked); costLabel.Text = Cost.ToString("c"); }
private void DisplayDinnerPartyCost() { decimal Cost = dinnerParty.CalculateCost(checkBox2.Checked); //healthy option is checked. labelCost.Text = Cost.ToString("c"); //passing c tells it to use local currency value. Can also use f3 }