Example #1
0
        public Form1()
        {
            //INIT
            InitializeComponent();

            //Init dinnerparty interface
            dinnerParty = new DinnerParty((int)numericUnDdinner.Value, cbDinnerFancy.Checked, cbDinnerHealthy.Checked);
            DisplayDinnerPartyCost();

            //Init birthdayparty interface
            birthdayParty = new BirthdayParty((int)numUnDBirthday.Value, cbBirthdayFancy.Checked, tbCakeWrit.Text);
            DisplayBirthdayPartyCost();
        }
Example #2
0
        public Form1()
        {
            //INIT
            InitializeComponent();

            //Init dinnerparty interface
            dinnerParty = new DinnerParty((int)numericUnDdinner.Value, cbDinnerFancy.Checked, cbDinnerHealthy.Checked);
            DisplayDinnerPartyCost();

            //Init birthdayparty interface
            birthdayParty = new BirthdayParty((int)numUnDBirthday.Value, cbBirthdayFancy.Checked, tbCakeWrit.Text);
            DisplayBirthdayPartyCost();
        }