Example #1
0
        public Form1()
        {
            InitializeComponent();
            dinnerParty = new DinnerParty((int)numericUpDown1.Value, checkBox1.Checked, checkBox2.Checked);
            DisplayDinnerPartyCost();

            birthdayParty = new BirthdayParty((int)numberBirthday.Value, fancyBirthday.Checked, cakeWriting.Text);
            DisplayBirthdayPartyCost();
        }
Example #2
0
        public MainForm()
        {
            InitializeComponent();
            dinnerParty = new DinnerParty((int)numNumberOfPeople.Value, chkHealthy.Checked, chkFancy.Checked);
            DisplayDinnerPartyCost();

            birthdayParty = new BirthdayParty((int)numBirthday.Value, chkFancyBirthday.Checked, txtCakeWriting.Text);
            DisplayBirthdayPartyCost();
        }
Example #3
0
        public Form1()
        {
            InitializeComponent();

            Dinner = new DinnerParty((int)numericUpDown1.Value, false, false);
            ToonKosten();
            Birthday = new BirthdayParty((int)numericUpDown1.Value, false, "");
            ToonKostenBirthday();
        }