public Form1() { InitializeComponent(); dinnerParty = new DinnerParty() { NumberOfPerson = 5 }; dinnerParty.SetHealthyOption(false); dinnerParty.CalculatecostOfDecorations(true); DisplayDinnerPartyCost(); }
private void beveragesCheckBox_CheckedChanged(object sender, EventArgs e) { dinnerParty.SetHealthyOption(beveragesCheckBox.Checked); DisplayDinnerPartyCost(); }