public Form1() { InitializeComponent(); dinnerParty = new DinnerParty(); dinnerParty.CalculateCostOfDecorations(fancyBox.Checked); dinnerParty.SetHealthyOption(healthyBox.Checked); DisplayDinnerPartyCost(); }
public Form1() { InitializeComponent(); Party = new DinnerParty(); Party.SetHealthyOption(healthyOption.Checked); Party.CalculateCostOfDecorations(fancyDecor.Checked); DisplayDinnerPartyCost(); costLabel.Text = ""; }
public Form1() { InitializeComponent(); dinnerParty = new DinnerParty(); dinnerParty.SetPartyOptions((int)numericUpDown1.Value, fancyBox.Checked); dinnerParty.SetHealthyOptions(healthyBox.Checked); dinnerParty.CalculateCostOfDecorations(fancyBox.Checked); DisplayDinnerPartyCost(); }
public Form1() { InitializeComponent(); dinnerParty = new DinnerParty(); // { NumberOfPeople = 5 }; dinnerParty.SetPartyOptions(5, checkBox1.Checked); dinnerParty.SetHealthyOption(checkBox2.Checked); //dinnerParty.CalculateCostOfDecorations(checkBox1.Checked); DisplayDinnerPartyCost(); }
public Form1() { InitializeComponent(); dinnerParty = new DinnerParty((int)numberDinner.Value, fancyDinnerBox.Checked, healthyDinnerBox.Checked); birthdayParty = new BirthdayParty((int)numberBithday.Value, fancyBirthday.Checked, cakeWritingTxtBox.Text); DisplayDinnerPartyCost(); DisplayBirthdayPartyCost(); }
public Form1() { InitializeComponent(); //Calls DinnerParty Constructor dinnerParty = new DinnerParty((int)numericUpDown1.Value, healthyBox.Checked, fancyBox.Checked); birthdayParty = new BirthdayParty((int)numberBirthday.Value, fancyBirthday.Checked, CAKEwRITING.Text); DisplayBirthdayPartyCost(); DisplayDinnerPartyCost(); }
public Form1() { InitializeComponent(); dinnerParty = new DinnerParty() { NumberOfPeople = (int)nudPeople.Value }; //Create new dinnerparty with people equal to default. dinnerParty.SetHealthyOption(false); dinnerParty.CalculateCostOfDecorations(chbFancyDecorations.Checked); DisplayDinnerPartyCost(); }
public Planner() { InitializeComponent(); dinnerparty = new DinnerParty( (int)numericUpDown1.Value, HealthyOption.Checked, FancyDecorations.Checked); DisplayDinnerPartyCost(); birthdayParty = new BirthdayParty((int)numericUpDown2.Value, checkBox1.Checked, textBox1.Text); DisplayBirthdayPartyCost(); }
public Form1() { InitializeComponent(); //dinnerParty = new DinnerParty(); // { NumberOfPeople = 5 }; //dinnerParty.SetPartyOptions(5, checkBox1.Checked); //dinnerParty.SetHealthyOption(checkBox2.Checked); //dinnerParty.CalculateCostOfDecorations(checkBox1.Checked); dinnerParty = new DinnerParty((int)numericUpDown1.Value, checkBox2.Checked, checkBox1.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); DisplayDinnerPartyCost(); }