Esempio n. 1
0
 public Form1()
 {
     InitializeComponent();
     dinnerparty = new DinnerParty();
     dinnerparty.CalculateCostOfDecorations(fancyBox.Checked);
     dinnerparty.SetHealthyOption(healthyBox.Checked);
     DisplayDinnerPartyCost();
 }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();

            dinnerParty = new DinnerParty()
            {
                NumberOfPeople = 5
            };
            dinnerParty.SetHealthyOption(false);
            dinnerParty.CalculateCostOfDecorations(true);
            DisplayDinnerPartyCost();
        }
Esempio n. 3
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty((int)numericUpDown1.Value, healthyBox.Checked, fancyBox.Checked);
     DisplayDinnerPartyCost();
 }