Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty((int)numericUpDown1.Value,
                          healthyBox.Checked, fancyBox.Checked);
     DisplayDinnerPartyCost();
 }
Exemplo n.º 2
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty() { NumberOfPeople = 5 };
     dinnerParty.CalculateCostOfDecorations(fancyBox.Checked);
     dinnerParty.SetHealthyOption(healthyBox.Checked);
     DisplayDinnerPartyCost();
 }
Exemplo n.º 3
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty((int)numericUpDown1.Value,
                          healthyBox.Checked, fancyBox.Checked);
     DisplayDinnerPartyCost();
     birthdayParty = new Birthday((int)numericUpDown2.Value,
                     checkBox1.Checked, cakewriting.Text);
 }
Exemplo n.º 4
0
        public Form1()
        {
            InitializeComponent();
            dinnerParty = new DinnerParty((int)numericUpDown1.Value,
                                          healthyBox.Checked, fancyBox.Checked);
            DisplayDinnerPartyCost();

            birthdayParty = new BirthdayParty((int)numberBirthday.Value,
                                              fancyBirthday.Checked, cakeWriting.Text);
            DisplayBirthdayPartyCost();
        }
Exemplo n.º 5
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty()
     {
         NumberOfPeople = 5
     };
     dinnerParty.CalculateCostOfDecorations(fancyBox.Checked);
     dinnerParty.SetHealthyOption(healthyBox.Checked);
     DisplayDinnerPartyCost();
 }
Exemplo n.º 6
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();
        }