示例#1
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty((int)numberOfPeopleUpDown.Value, helthyBox.Checked, fancyBox.Checked);
     DisplayDinnerPartyCost();
     birthdayParty = new BirthdayParty((int)numberBirthday.Value, fancyBirthday.Checked, cakeWriting.Text);
     DisplayBirthdayPartyCost();
 }
示例#2
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty((int)numericUpDown1.Value, healthyBox.Checked, fancyBox.Checked);
     dinnerParty.SetHealthyOption(false);
     dinnerParty.CalculateCostOfDecorations(true);
     DisplayDinnerPartyCost();
 }
示例#3
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();
        }
示例#4
0
 public FormPartyPlanner()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty((int)nudDinner.Value,
                                   chkHealthyOption.Checked, chkFancyDinner.Checked);
     birthdayParty = new BirthdayParty((int)nudBirthday.Value,
                                       txtCakeWriting.Text, chkFancyBirthday.Checked);
     DisplayDinnerPartyCost();
     DisplayBirthdayPartyCost();
 }
示例#5
0
        public Form1()
        {
            InitializeComponent();

            dinnerParty = new DinnerParty((int)numericUpDown1.Value, fancyBox.Checked, healthyBox.Checked);
            DisplayDinnerPartyCost();

            birthdayParty = new BirthdayParty((int)numericUpDownBday.Value, fancyBoxBday.Checked,
                                              cakeWritingText.Text);
            DisplayBirthdayPartyCost();
        }
示例#6
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();
        }
示例#7
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty()
     {
         NumberOfPeople = 5
     };
     dinnerParty.SetHealthyOption(false);
     dinnerParty.CalculateCostOfDecorations(true);
     DisplayDinnerPartyCost();
 }
示例#8
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty((int)numericUpDown1.Value, fancyBox.Checked, healthyBox.Checked);
     DisplayDinnerPartyCost();
 }