예제 #1
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty() { NumberOfPeople = 5 };
     dinnerParty.CalculateCostOfDecorations(fancyBox.Checked);
     dinnerParty.SetHealthyOption(healthyBox.Checked);
     DisplayDinnerPartyCost();
 }
예제 #2
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty()
     {
         NumberOfPeople = 5
     };
     dinnerParty.CalculateCostOfDecorations(fancyBox.Checked);
     dinnerParty.SetHealthyOption(healthyBox.Checked);
     DisplayDinnerPartyCost();
 }
예제 #3
0
        public Form1()
        {
            InitializeComponent();

            dinnerParty = new DinnerParty()
            {
                NumberOfPeople = 5
            };
            dinnerParty.CalculateCostOfDecorations(fancyBox.Checked);
            dinnerParty.SetHealthyOption(healthyBox.Checked);
            DisplayDinnerPartyCost();

            bhirthdayParty = new BhirthdayPart((int)numberBirthday.Value, fancyBirthday.Checked, cakeWriting.Text);

            DysplayBirthdayPartyCost();
        }
예제 #4
0
 private void healthyBox_CheckedChanged(object sender, EventArgs e)
 {
     dinnerParty.SetHealthyOption(healthyBox.Checked);
     DisplayDinnerPartyCost();
 }