public Form1() { InitializeComponent(); dinnerParty = new DinnerParty(); dinnerParty.SetPartyOptions((int)numericUpDown1.Value, fancyBox.Checked); dinnerParty.SetHealthyOptions(healthyBox.Checked); dinnerParty.CalculateCostOfDecorations(fancyBox.Checked); DisplayDinnerPartyCost(); }
private void healthyBox_CheckedChanged(object sender, EventArgs e) { dinnerParty.SetHealthyOptions(healthyBox.Checked); DisplayDinnerPartyCost(); }