示例#1
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty() { NumberOfPeople = 5 };
     dinnerParty.CalculateCostOfDecorations(fancyBox.Checked);
     dinnerParty.SetHealthyOption(healthyBox.Checked);
     DisplayDinnerPartyCost();
 }
示例#2
0
文件: Form1.cs 项目: linuxemb/C_sharp
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty((int)numericUpDown1.Value, healthyBox.Checked,
                                   fancyBox.Checked);
     birthdayParty = new BirthdayParty((int)numericUpDown2.Value, fancyBirthday.Checked, cakeWriting.Text);
     DisplayDinnerPartyCost();
 }
示例#3
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty()
     {
         NumberOfPeople = 5
     };
     dinnerParty.CalculateCostOfDecorations(fancyBox.Checked);
     dinnerParty.SetHealthyOption(healthyBox.Checked);
     DisplayDinnerPartyCost();
 }