Exemple #1
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty();
     dinnerParty.SetPartyOptions(5, true);
     dinnerParty.SetHealthyOption(false);
     dinnerParty.CalculateDecorationCosts(true);
     DisplayDinnerPartyCost();
 }
Exemple #2
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty();
     dinnerParty.SetPartyOptions(5, true);
     dinnerParty.SetHealthyOption(false);
     dinnerParty.CalculateDecorationCosts(true);
     DisplayDinnerPartyCost();
 }
Exemple #3
0
 private void checkBox2_CheckedChanged(object sender, EventArgs e)
 {
     dinnerParty.SetHealthyOption(checkBox2.Checked);
     DisplayDinnerPartyCost();
 }