예제 #1
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty((int)numericUpDown1.Value,
                                     healthyBox.Checked, fancyBox.Checked );
     DisplayDinnerPartyCost();
 }
예제 #2
0
        public Form1()
        {
            InitializeComponent();

            party = new DinnerParty((int)NumberPeopleNumericUpDown.Value, FantazyDecorationCheckBox.Checked, HealthyOptionCheckBox.Checked);

            DisplayChanged();
        }
예제 #3
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();
        }
예제 #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();
        }