Example #1
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty();
     dinnerParty.SetPartyOptions(5, true);
     dinnerParty.SetHealthyOption(false);
     dinnerParty.CalculateDecorationCosts(true);
     DisplayDinnerPartyCost();
 }
Example #2
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty();
     dinnerParty.SetPartyOptions(5, true);
     dinnerParty.SetHealthyOption(false);
     dinnerParty.CalculateDecorationCosts(true);
     DisplayDinnerPartyCost();
 }
Example #3
0
 private void numericUpDown1_ValueChanged(object sender, EventArgs e)
 {
     dinnerParty.SetPartyOptions((int)numericUpDown1.Value, checkBox1.Checked);
     DisplayDinnerPartyCost();
 }