示例#1
0
        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();
        }