예제 #1
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty()
     {
         NumberOfPerson = 5
     };
     dinnerParty.SetHealthyOption(false);
     dinnerParty.CalculatecostOfDecorations(true);
     DisplayDinnerPartyCost();
 }
예제 #2
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty((int)numPeople.Value, healthyBox.Checked, fancyBox.Checked);
     DisplayDinnerPartyCost();
 }