Esempio n. 1
0
 public void addSide(Side s)
 {
     side             = s;
     PropertyChanged += onPriceChanged;
 }
Esempio n. 2
0
 /// <summary>
 /// default constructor for a combo object
 /// </summary>
 /// <param name="drink">Drink to be used in combo</param>
 /// <param name="entree">Entree to be used in combo</param>
 /// <param name="side">Side to be used in combo</param>
 public Combo(Drink drink, Entree entree, Side side)
 {
     this.Drink  = drink;
     this.Entree = entree;
     this.Side   = side;
 }
Esempio n. 3
0
        }//end no-arg constructor

        /// <summary>
        /// Initializes the components of the combo along with the combo
        /// </summary>
        /// <param name="Entree">This combo's entree</param>
        /// <param name="Side">This combo's side</param>
        /// <param name="Drink">This combo's drink</param>
        public Combo(Entree Entree, Side Side, Drink Drink)
        {
            this.Entree = Entree;
            this.Side = Side;
            this.Drink = Drink;
        }//end 3-arg constructor
Esempio n. 4
0
 /// <summary>
 /// Constructor that creates our combo
 /// </summary>
 /// <param name="e">Entree</param>
 /// <param name="s">Side</param>
 /// <param name="d">Drink</param>
 public Combo(Entree e, Side s, Drink d)
 {
     Entree = e;
     Side   = s;
     Drink  = d;
 }