Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty()
     {
         NumberOfPerson = 5
     };
     dinnerParty.SetHealthyOption(false);
     dinnerParty.CalculatecostOfDecorations(true);
     DisplayDinnerPartyCost();
 }
Exemplo n.º 2
0
 private void beveragesCheckBox_CheckedChanged(object sender, EventArgs e)
 {
     dinnerParty.SetHealthyOption(beveragesCheckBox.Checked);
     DisplayDinnerPartyCost();
 }