예제 #1
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty() { NumberOfPeople = 5 };
     dinnerParty.CalculateCostOfDecorations(fancyBox.Checked);
     dinnerParty.SetHealthyOption(healthyBox.Checked);
     DisplayDinnerPartyCost();
 }
예제 #2
0
파일: Form1.cs 프로젝트: nohe427/HeadFirst
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty()
     {
         NumberOfPeople = 5
     };
     dinnerParty.CalculateCostOfDecorations(fancyBox.Checked);
     dinnerParty.SetHealthyOption(healthyBox.Checked);
     DisplayDinnerPartyCost();
 }
예제 #3
0
파일: Form1.cs 프로젝트: nohe427/HeadFirst
 private void fancyBox_CheckedChanged(object sender, EventArgs e)
 {
     dinnerParty.CalculateCostOfDecorations(fancyBox.Checked);
     DisplayDinnerPartyCost();
 }