예제 #1
0
        private void DisplayDinnerPartyCost()
        {
            dinnerParty.NumberOfPeople = (int)numNumberOfPeople.Value;
            dinnerParty.CalculateCostOfDecorations(chkFancy.Checked);
            dinnerParty.SetHealthyOption(chkHealthy.Checked);

            decimal Cost = dinnerParty.CalculateCost(chkHealthy.Checked);

            lblCostLabel.Text = Cost.ToString("c");
        }
예제 #2
0
        private void DisplayDinnerPartyCost()
        {
            decimal Cost = dinnerParty.CalculateCost(healthyBox.Checked);

            labelCost.Text = Cost.ToString("c");
        }
예제 #3
0
        private void DisplayDinnerPartyCost()
        {
            decimal Cost = dinnerParty.CalculateCost(checkBox2.Checked);

            costLabel.Text = Cost.ToString("c");
        }