Example #1
0
 public Form1()
 {
     InitializeComponent();
     party = new Party();
     party.SetPartyOptions((int)personCount.Value, fancyDecorations.Checked);
     party.SetDrinkCost(healthyOption.Checked);
     CalculatePartyCost();
 }
Example #2
0
 private void personCount_ValueChanged(object sender, EventArgs e)
 {
     party.SetPartyOptions((int)personCount.Value, fancyDecorations.Checked);
     CalculatePartyCost();
 }