public Form1() { InitializeComponent(); dinnerParty = new DinnerParty((int)nudNumberOfPeople.Value, healthyBox.Checked, fancyBox.Checked) { }; DisplayDinnerPartyCost(); birthdayParty = new BirthdayParty((int)numberBirthday.Value, fancyBirthday.Checked, cakeWriting.Text); DisplayBirthdayPartyCost(); }
public Form1() { InitializeComponent(); dinnerParty = new DinnerParty((int)nudNumberOfPeople.Value, healthyBox.Checked, fancyBox.Checked) { }; DisplayDinnerPartyCost(); }