Example #1
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty();
     dinnerParty.CalculateCostOfDecorations(fancyBox.Checked);
     dinnerParty.SetHealthyOption(healthyBox.Checked);
     DisplayDinnerPartyCost();
 }
Example #2
0
 public Form1()
 {
     InitializeComponent();
     Party = new DinnerParty();
     Party.SetHealthyOption(healthyOption.Checked);
     Party.CalculateCostOfDecorations(fancyDecor.Checked);
     DisplayDinnerPartyCost();
     costLabel.Text = "";
 }
Example #3
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty();
     dinnerParty.SetPartyOptions((int)numericUpDown1.Value, fancyBox.Checked);
     dinnerParty.SetHealthyOptions(healthyBox.Checked);
     dinnerParty.CalculateCostOfDecorations(fancyBox.Checked);
     DisplayDinnerPartyCost();
 }
Example #4
0
        public Form1()
        {
            InitializeComponent();

            dinnerParty = new DinnerParty(); // { NumberOfPeople = 5 };
            dinnerParty.SetPartyOptions(5, checkBox1.Checked);
            dinnerParty.SetHealthyOption(checkBox2.Checked);
            //dinnerParty.CalculateCostOfDecorations(checkBox1.Checked);
            DisplayDinnerPartyCost();
        }
Example #5
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty((int)numberDinner.Value,
                                   fancyDinnerBox.Checked, healthyDinnerBox.Checked);
     birthdayParty = new BirthdayParty((int)numberBithday.Value,
                                       fancyBirthday.Checked, cakeWritingTxtBox.Text);
     DisplayDinnerPartyCost();
     DisplayBirthdayPartyCost();
 }
Example #6
0
 public Form1()
 {
     InitializeComponent();
     //Calls DinnerParty Constructor
     dinnerParty = new DinnerParty((int)numericUpDown1.Value, healthyBox.Checked,
                                   fancyBox.Checked);
     birthdayParty = new BirthdayParty((int)numberBirthday.Value,
                                       fancyBirthday.Checked, CAKEwRITING.Text);
     DisplayBirthdayPartyCost();
     DisplayDinnerPartyCost();
 }
Example #7
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty()
     {
         NumberOfPeople = (int)nudPeople.Value
     };                                                                         //Create new dinnerparty with people equal to default.
     dinnerParty.SetHealthyOption(false);
     dinnerParty.CalculateCostOfDecorations(chbFancyDecorations.Checked);
     DisplayDinnerPartyCost();
 }
Example #8
0
        public Planner()
        {
            InitializeComponent();

            dinnerparty = new DinnerParty(
                (int)numericUpDown1.Value, HealthyOption.Checked, FancyDecorations.Checked);
            DisplayDinnerPartyCost();

            birthdayParty = new BirthdayParty((int)numericUpDown2.Value, checkBox1.Checked, textBox1.Text);
            DisplayBirthdayPartyCost();
        }
Example #9
0
        public Form1()
        {
            InitializeComponent();

            //dinnerParty = new DinnerParty(); // { NumberOfPeople = 5 };
            //dinnerParty.SetPartyOptions(5, checkBox1.Checked);
            //dinnerParty.SetHealthyOption(checkBox2.Checked);
            //dinnerParty.CalculateCostOfDecorations(checkBox1.Checked);

            dinnerParty = new DinnerParty((int)numericUpDown1.Value, checkBox2.Checked, checkBox1.Checked);

            DisplayDinnerPartyCost();

            birthdayParty = new BirthdayParty((int)numberBirthday.Value, fancyBirthday.Checked, cakeWriting.Text);
            DisplayBirthdayPartyCost();
        }
Example #10
0
 public Form1()
 {
     InitializeComponent();
     dinnerParty = new DinnerParty((int)numericUpDown1.Value, healthyBox.Checked, fancyBox.Checked);
     DisplayDinnerPartyCost();
 }