public Form1() { InitializeComponent(); dinnerParty = new DinnerParty((int)numberOfPeopleUpDown.Value, helthyBox.Checked, fancyBox.Checked); DisplayDinnerPartyCost(); birthdayParty = new BirthdayParty((int)numberBirthday.Value, fancyBirthday.Checked, cakeWriting.Text); DisplayBirthdayPartyCost(); }
public Form1() { InitializeComponent(); dinnerParty = new DinnerParty((int)numericUpDown1.Value, healthyBox.Checked, fancyBox.Checked); dinnerParty.SetHealthyOption(false); dinnerParty.CalculateCostOfDecorations(true); DisplayDinnerPartyCost(); }
public Form1() { InitializeComponent(); dinnerParty = new DinnerParty((int)dinnerNumUpDwn.Value, healthOpCheckBox.Checked, dinnerFancyDecoCheckBox.Checked); birthdayParty = new BirthdayParty((int)birthdayNumUpDwn.Value, birthdayFancyDecoCheckBox.Checked, cakeWritingTxtBox.Text); DisplayDinnerPartyCost(); DisplayBirthdayPartyCost(); }
public FormPartyPlanner() { InitializeComponent(); dinnerParty = new DinnerParty((int)nudDinner.Value, chkHealthyOption.Checked, chkFancyDinner.Checked); birthdayParty = new BirthdayParty((int)nudBirthday.Value, txtCakeWriting.Text, chkFancyBirthday.Checked); DisplayDinnerPartyCost(); DisplayBirthdayPartyCost(); }
public Form1() { InitializeComponent(); dinnerParty = new DinnerParty((int)numericUpDown1.Value, fancyBox.Checked, healthyBox.Checked); DisplayDinnerPartyCost(); birthdayParty = new BirthdayParty((int)numericUpDownBday.Value, fancyBoxBday.Checked, cakeWritingText.Text); DisplayBirthdayPartyCost(); }
public Form1() { InitializeComponent(); birthdayParty = new BirthdayParty((int)numericUpDownNumPeople.Value, checkBoxHealthy.Checked, ""); dinnerParty = new DinnerParty((int)numericUpDownNumPeople.Value, checkBoxHealthy.Checked, checkBoxFancy.Checked); currentParty = birthdayParty; comboBoxPartyType.SelectedIndex = 0; DisplayPartyCost(); }
public Form1() { InitializeComponent(); dinnerParty = new DinnerParty() { NumberOfPeople = 5 }; dinnerParty.SetHealthyOption(false); dinnerParty.CalculateCostOfDecorations(true); DisplayDinnerPartyCost(); }
public Form1() { InitializeComponent(); dinnerParty = new DinnerParty((int)numericUpDown1.Value, fancyBox.Checked, healthyBox.Checked); DisplayDinnerPartyCost(); }