コード例 #1
0
ファイル: Form1.cs プロジェクト: MarkPThomas/HeadFirst-CSharp
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty((int)numericUpDown1.Value,
                                     healthyBox.Checked, fancyBox.Checked );
     DisplayDinnerPartyCost();
 }
コード例 #2
0
        public Form1()
        {
            InitializeComponent();

            party = new DinnerParty((int)NumberPeopleNumericUpDown.Value, FantazyDecorationCheckBox.Checked, HealthyOptionCheckBox.Checked);

            DisplayChanged();
        }
コード例 #3
0
        public Form1()
        {
            InitializeComponent();
            dinnerParty = new DinnerParty((int)numericUpDown1.Value,
                                          healthyBox.Checked, fancyBox.Checked);
            DisplayDinnerPartyCost();

            birthdayParty = new BirthdayParty((int)numberBirthday.Value,
                                              fancyBirthday.Checked, cakeWriting.Text);

            DisplayBirthdayPartyCost();
        }
コード例 #4
0
ファイル: Form1.cs プロジェクト: MarkPThomas/HeadFirst-CSharp
        public Form1()
        {
            InitializeComponent();
            dinnerParty = new DinnerParty((int)numericUpDown1.Value,
                                            healthyBox.Checked, fancyBox.Checked );
            DisplayDinnerPartyCost();

            birthdayParty = new BirthdayParty((int)numberBirthday.Value,
                                            fancyBirthday.Checked, cakeWriting.Text);

            DisplayBirthdayPartyCost();
        }