private void DisplayDinnerPartyCost() { dinnerParty.NumberOfPeople = (int)numNumberOfPeople.Value; dinnerParty.CalculateCostOfDecorations(chkFancy.Checked); dinnerParty.SetHealthyOption(chkHealthy.Checked); decimal Cost = dinnerParty.CalculateCost(chkHealthy.Checked); lblCostLabel.Text = Cost.ToString("c"); }
private void DisplayDinnerPartyCost() { decimal Cost = dinnerParty.CalculateCost(healthyBox.Checked); labelCost.Text = Cost.ToString("c"); }
private void DisplayDinnerPartyCost() { decimal Cost = dinnerParty.CalculateCost(checkBox2.Checked); costLabel.Text = Cost.ToString("c"); }