예제 #1
0
파일: Form1.cs 프로젝트: selvestesand/repo
        public Form1()
        {
            InitializeComponent();

            dinnerParty = new DinnerParty((int)dinnerNumUpDwn.Value, healthOpCheckBox.Checked, dinnerFancyDecoCheckBox.Checked);
            birthdayParty = new BirthdayParty((int)birthdayNumUpDwn.Value, birthdayFancyDecoCheckBox.Checked, cakeWritingTxtBox.Text);

            DisplayDinnerPartyCost();
            DisplayBirthdayPartyCost();
        }
예제 #2
0
파일: Form1.cs 프로젝트: ppaier/HFCSharp
        public Form1()
        {
            InitializeComponent();

            birthdayParty = new BirthdayParty((int)numericUpDownNumPeople.Value, checkBoxHealthy.Checked, "");
            dinnerParty = new DinnerParty((int)numericUpDownNumPeople.Value, checkBoxHealthy.Checked, checkBoxFancy.Checked);

            currentParty = birthdayParty;
            comboBoxPartyType.SelectedIndex = 0;
            DisplayPartyCost();
        }