コード例 #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();
        }