I was trying for some time to encapsulate the party planner pg. 182 so it would work. I tried everything used in the Farmer program but nothing.
What I did after that was add a line to the numericupdown:
Before:
private void numericUpDown1_ValueChanged(object sender, EventArgs e)
{
dinnerParty.numberOfPeople = (int)numericUpDown1.Value;
DisplayDinnerPartyCost();
After:
]private void numericUpDown1_ValueChanged(object sender, EventArgs e)
{
dinnerParty.numberOfPeople = (int)numericUpDown1.Value;
dinnerParty.CalculateCostOfDecorations(checkBox1.Checked);
DisplayDinnerPartyCost();
Just wanted to give the fix for the party planner project for those trying to solve it.











