public Form1() { InitializeComponent(); dinnerParty = new DinnerParty() { NumberOfPeople = 5 }; dinnerParty.CalculateCostOfDecorations(fancyBox.Checked); dinnerParty.SetHealthyOption(healthyBox.Checked); DisplayDinnerPartyCost(); }
public Form1() { InitializeComponent(); dinnerParty = new DinnerParty() { NumberOfPeople = 5 }; dinnerParty.CalculateCostOfDecorations(fancyBox.Checked); dinnerParty.SetHealthyOption(healthyBox.Checked); DisplayDinnerPartyCost(); }
private void fancyBox_CheckedChanged(object sender, EventArgs e) { dinnerParty.CalculateCostOfDecorations(fancyBox.Checked); DisplayDinnerPartyCost(); }