Commit 1ecc8edc authored by islater's avatar islater
Browse files

added implimentations for customizations for entrees

parent 0f21fcc2
......@@ -15,6 +15,9 @@ namespace CowboyCafe.Data
{
/// <summary>
/// event to trigger when special instructions are changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
......
......@@ -6,13 +6,30 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace CowboyCafe.Data
{
public class BakedBeans:Side
public class BakedBeans : Side
{
/// <summary>
/// event to trigger when special instructions are changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// Property to manage the sides size
/// </summary>
private Size size = Size.Small;
public override Size Size
{
get { return size; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Size"));
size = value;
}
}
/// <summary>
/// Returns the items price
/// </summary>
......
......@@ -6,12 +6,29 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace CowboyCafe.Data
{
public class ChiliCheeseFries : Side
{
/// <summary>
/// event to trigger when special instructions are changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// Property to manage the sides size
/// </summary>
private Size size = Size.Small;
public override Size Size
{
get { return size; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Size"));
size = value;
}
}
/// <summary>
/// Returns the items price
/// </summary>
......
......@@ -6,12 +6,29 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace CowboyCafe.Data
{
public class CornDodgers : Side
{
/// <summary>
/// event to trigger when special instructions are changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// Property to manage the sides size
/// </summary>
private Size size = Size.Small;
public override Size Size
{
get { return size; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Size"));
size = value;
}
}
/// <summary>
/// Returns the items price
/// </summary>
......
......@@ -5,31 +5,74 @@
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace CowboyCafe.Data
{
public class CowboyCoffee : Drink
{
/// <summary>
/// event to trigger when special instructions are changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// Determines the size of the drink
/// </summary>
public override Size Size { get; set; }
private Size size = Size.Small;
public override Size Size
{
get { return size; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Size"));
size = value;
}
}
/// <summary>
/// Determines wether or not there is ice in the drink
/// </summary>
public override bool Ice { get; set; } = false;
private bool ice = false;
public override bool Ice
{
get { return ice; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Ice"));
ice = value;
}
}
/// <summary>
/// determins if the coffe will have cream or not
/// </summary>
public bool RoomForCream { get; set; } = false;
private bool roomforcream=false;
public bool RoomForCream
{
get { return roomforcream; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("RoomForCream"));
roomforcream = value;
}
}
/// <summary>
/// determins if the coffe is decaf or not
/// </summary>
public bool Decaf { get; set; } = false;
private bool decaf = false;
public bool Decaf
{
get { return decaf; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Decaf"));
decaf = value;
}
}
/// <summary>
/// Determins the price of the drink based on the size of the drink
/// </summary>
......
......@@ -4,6 +4,7 @@
* Data structure to resemble CowPoke Chillie entree
*/
using System;
using System.ComponentModel;
using System.Collections.Generic;
namespace CowboyCafe.Data
......@@ -13,6 +14,11 @@ namespace CowboyCafe.Data
/// </summary>
public class CowpokeChili : Entree
{
/// <summary>
/// event to trigger when special instructions are changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
private bool cheese = true;
/// <summary>
/// If the chili is topped with cheese
......@@ -20,7 +26,9 @@ namespace CowboyCafe.Data
public bool Cheese
{
get { return cheese; }
set { cheese = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Cheese"));
cheese = value; }
}
private bool sourCream = true;
......@@ -30,7 +38,9 @@ namespace CowboyCafe.Data
public bool SourCream
{
get { return sourCream; }
set { sourCream = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("SourCream"));
sourCream = value; }
}
private bool greenOnions = true;
......@@ -40,7 +50,9 @@ namespace CowboyCafe.Data
public bool GreenOnions
{
get { return greenOnions; }
set { greenOnions = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("GreenOnions"));
greenOnions = value; }
}
private bool tortillaStrips = true;
......@@ -50,7 +62,9 @@ namespace CowboyCafe.Data
public bool TortillaStrips
{
get { return tortillaStrips; }
set { tortillaStrips = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("TortillaStrips"));
tortillaStrips = value; }
}
/// <summary>
......
......@@ -5,12 +5,17 @@
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace CowboyCafe.Data
{
public class DakotaDoubleBurger:Entree
{
/// <summary>
/// event to trigger when special instructions are changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// The price of the burger
......@@ -41,7 +46,9 @@ namespace CowboyCafe.Data
public bool Bun
{
get { return bun; }
set { bun = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Bun"));
bun = value; }
}
private bool ketchup = true;
......@@ -51,7 +58,9 @@ namespace CowboyCafe.Data
public bool Ketchup
{
get { return ketchup; }
set { ketchup = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Ketchup"));
ketchup = value; }
}
private bool mustard = true;
......@@ -61,7 +70,9 @@ namespace CowboyCafe.Data
public bool Mustard
{
get { return mustard; }
set { mustard = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Mustard"));
mustard = value; }
}
private bool pickle = true;
......@@ -71,7 +82,9 @@ namespace CowboyCafe.Data
public bool Pickle
{
get { return pickle; }
set { pickle = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Pickle"));
pickle = value; }
}
private bool cheese =true;
......@@ -81,7 +94,9 @@ namespace CowboyCafe.Data
public bool Cheese
{
get { return cheese; }
set { cheese = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Cheese"));
cheese = value; }
}
private bool tomato = true;
......@@ -91,7 +106,9 @@ namespace CowboyCafe.Data
public bool Tomato
{
get { return tomato; }
set { tomato = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Bread"));
tomato = value; }
}
......@@ -102,7 +119,9 @@ namespace CowboyCafe.Data
public bool Lettuce
{
get { return lettuce; }
set { lettuce = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Lettuce"));
lettuce = value; }
}
private bool mayo = true;
......@@ -112,7 +131,9 @@ namespace CowboyCafe.Data
public bool Mayo
{
get { return mayo; }
set { mayo = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Mayo"));
mayo = value; }
}
public override List<string> SpecialInstructions
......
......@@ -5,24 +5,58 @@
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace CowboyCafe.Data
{
public class JerkedSoda: Drink
{
/// <summary>
/// event to trigger when special instructions are changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// Determines the size of the drink
/// </summary>
public override Size Size { get; set; }
private Size size = Size.Small;
public override Size Size
{
get { return size; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Size"));
size = value;
}
}
/// <summary>
/// Determines wether or not there is ice in the drink
/// </summary>
public override bool Ice { get; set; } = true;
public SodaFlavor Flavor { get; set; }
private bool ice = true;
public override bool Ice
{
get { return ice; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Ice"));
ice = value;
}
}
/// <summary>
/// Propety to manage the sodas flavor
/// </summary>
private SodaFlavor flavor = SodaFlavor.BirchBeer;
public SodaFlavor Flavor
{
get { return flavor; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Flavor"));
flavor = value;
}
}
/// <summary>
/// Determins the price of the drink based on the size of the drink
......
......@@ -6,13 +6,29 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace CowboyCafe.Data
{
public class PanDeCampo : Side
{
/// <summary>
/// event to trigger when special instructions are changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// Property to manage the sides size
/// </summary>
private Size size = Size.Small;
public override Size Size
{
get { return size; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Size"));
size = value;
}
}
/// <summary>
/// Returns the items price
/// </summary>
......
......@@ -5,12 +5,17 @@
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace CowboyCafe.Data
{
public class PecosPulledPork:Entree
{
/// <summary>
///
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// The price of the pulled pork
/// </summary>
......@@ -40,7 +45,9 @@ namespace CowboyCafe.Data
public bool Bread
{
get { return bread; }
set { bread = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Bread"));
bread = value; }
}
private bool pickle=true;
......@@ -50,7 +57,9 @@ namespace CowboyCafe.Data
public bool Pickle
{
get { return pickle; }
set { pickle = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Pickle"));
pickle = value; }
}
public override List<string> SpecialInstructions
......
......@@ -19,7 +19,7 @@ namespace CowboyCafe.Data
/// <summary>
/// Gets the size of the entree
/// </summary>
public virtual Size Size { get; set; }
public abstract Size Size { get; set; }
/// <summary>
/// Gets the price of the side
......
......@@ -5,31 +5,74 @@
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace CowboyCafe.Data
{
public class TexasTea : Drink
{
/// <summary>
/// event to trigger when special instructions are changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// Determines the size of the drink
/// </summary>
public override Size Size { get; set; }
private Size size = Size.Small;
public override Size Size
{
get { return size; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Size"));
size = value;
}
}
/// <summary>
/// Determines wether or not there is ice in the drink
/// </summary>
public override bool Ice { get; set; } = true;
private bool ice = true;
public override bool Ice
{
get { return ice; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Ice"));
ice = value;
}
}
/// <summary>
/// dtermins if the Tea is seet or not
/// </summary>
public bool Sweet { get; set; } = true;
private bool sweet = true;
public bool Sweet
{
get { return sweet; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Sweet"));
sweet = value;
}
}
/// <summary>
/// determins if the tea has lemon in it
/// </summary>
public bool Lemon { get; set; } = false;
private bool lemon = false;
public bool Lemon
{
get { return lemon; }
set
{
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Lemon"));
lemon = value;
}
}
/// <summary>
/// Determins the price of the drink based on the size of the drink
......
......@@ -5,12 +5,18 @@
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace CowboyCafe.Data
{
public class TexasTripleBurger:Entree
{
/// <summary>
/// event to trigger when special instructions are changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// The price of the burger
......@@ -42,7 +48,9 @@ namespace CowboyCafe.Data
public bool Bun
{
get { return bun; }
set { bun = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Bun"));
bun = value; }
}
private bool ketchup = true;
......@@ -52,7 +60,9 @@ namespace CowboyCafe.Data
public bool Ketchup
{
get { return ketchup; }
set { ketchup = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Ketchup"));
ketchup = value; }
}
private bool mustard = true;
......@@ -62,7 +72,9 @@ namespace CowboyCafe.Data
public bool Mustard
{
get { return mustard; }
set { mustard = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Mustard"));
mustard = value; }
}
private bool pickle = true;
......@@ -72,7 +84,9 @@ namespace CowboyCafe.Data
public bool Pickle
{
get { return pickle; }
set { pickle = value; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Pickle"));
pickle = value; }