예제 #1
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty()
     {
         NumberOfPerson = 5
     };
     dinnerParty.SetHealthyOption(false);
     dinnerParty.CalculatecostOfDecorations(true);
     DisplayDinnerPartyCost();
 }
예제 #2
0
 private void decorationCheckBox_CheckedChanged(object sender, EventArgs e)
 {
     dinnerParty.CalculatecostOfDecorations(decorationCheckBox.Checked);
     DisplayDinnerPartyCost();
 }