Beispiel #1
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty(); // { NumberOfPeople = 5 };
     dinnerParty.SetPartyOptions(5, checkBoxFancy.Checked);
     numericUpDown1.Value = dinnerParty.GetNumberOfPeople();
     dinnerParty.SetHealthyOption(checkBoxHealthy.Checked);
     //dinnerParty.CalculateCostOfDecorations(checkBoxFancy.Checked);
     DisplayDinnerPartyCost();
 }
Beispiel #2
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty(); // { NumberOfPeople = 5 };
     dinnerParty.SetPartyOptions(5, checkBoxFancy.Checked);
     numericUpDown1.Value = dinnerParty.GetNumberOfPeople();
     dinnerParty.SetHealthyOption(checkBoxHealthy.Checked);
     //dinnerParty.CalculateCostOfDecorations(checkBoxFancy.Checked);
     DisplayDinnerPartyCost();
 }