Commit e40182e3 authored by islater's avatar islater
Browse files

asdf

parent 9fec4c60
......@@ -6,6 +6,9 @@ namespace CowboyCafe.Data
{
public class AngryChicken : Entree
{
/// <summary>
/// The price of the Sandwich
/// </summary>
......@@ -60,5 +63,13 @@ namespace CowboyCafe.Data
return instructions;
}
}
/// <summary>
/// Changs to string to be the
/// </summary>
/// <returns></returns>
public override string ToString()
{
return "Angry Chicken";
}
}
}
......@@ -53,6 +53,30 @@ namespace CowboyCafe.Data
throw new NotImplementedException("unknown size");
}
}
/// <summary>
/// To string method tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title="Baked Beans";
switch (Size)
{
case Size.Small:
title += ", small";
break;
case Size.Medium:
title += ", medium";
break;
case Size.Large:
title += ", large";
break;
default:
throw new NotImplementedException("unknown size");
}
return title;
}
}
}
......@@ -53,5 +53,31 @@ namespace CowboyCafe.Data
}
}
/// <summary>
/// To string method tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = "Chillie Cheese Fries";
switch (Size)
{
case Size.Small:
title += ", small";
break;
case Size.Medium:
title += ", medium";
break;
case Size.Large:
title += ", large";
break;
default:
throw new NotImplementedException("unknown size");
}
return title;
}
}
}
......@@ -53,5 +53,31 @@ namespace CowboyCafe.Data
}
}
/// <summary>
/// To string method used for tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = "Corn Dodger";
switch (Size)
{
case Size.Small:
title += ", small";
break;
case Size.Medium:
title += ", medium";
break;
case Size.Large:
title += ", large";
break;
default:
throw new NotImplementedException("unknown size");
}
return title;
}
}
}
......@@ -61,7 +61,7 @@ namespace CowboyCafe.Data
throw new InvalidOperationException("reached size that is not allowed");
}
}
public virtual List<string> SpecialInstructions
public override List<string> SpecialInstructions
{
get
{
......@@ -78,5 +78,36 @@ namespace CowboyCafe.Data
}
}
/// <summary>
/// To string method used for tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = "Cowboy Coffe";
if (Decaf)
{
title += ", Decaf";
}
switch (Size)
{
case Size.Small:
title += ", small";
break;
case Size.Medium:
title += ", medium";
break;
case Size.Large:
title += ", large";
break;
default:
throw new NotImplementedException("unknown size");
}
return title;
}
}
}
......@@ -87,6 +87,16 @@ namespace CowboyCafe.Data
return instructions;
}
}
/// <summary>
/// To string method used for tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
return "Cowpoke Chilli";
}
}
}
......@@ -129,5 +129,14 @@ namespace CowboyCafe.Data
}
}
/// <summary>
/// To string method used for tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
return "Dakota Double Burger";
}
}
}
......@@ -6,6 +6,8 @@ namespace CowboyCafe.Data
{
public abstract class Entree
{
/// <summary>
/// skeleton parameter for price variable
/// </summary>
......@@ -21,6 +23,7 @@ namespace CowboyCafe.Data
/// </summary>
public abstract List<string> SpecialInstructions { get; }
}
}
......@@ -55,7 +55,33 @@ namespace CowboyCafe.Data
}
}
/// <summary>
/// To string method tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = "Jerked Soda";
title += $", { Enum.GetName(typeof(SodaFlavor), Flavor)}";
switch (Size)
{
case Size.Small:
title += ", small";
break;
case Size.Medium:
title += ", medium";
break;
case Size.Large:
title += ", large";
break;
default:
throw new NotImplementedException("unknown size");
}
return title;
}
}
}
......@@ -53,6 +53,16 @@ namespace CowboyCafe.Data
throw new NotImplementedException("unknown size");
}
}
/// <summary>
/// To string method tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = "Pan de Campo";
title += $", { Enum.GetName(typeof(Size), Size)}";
return title;
}
}
}
......@@ -61,5 +61,15 @@ namespace CowboyCafe.Data
}
}
/// <summary>
/// To string method tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = "Pecos Pulled Pork";
return title;
}
}
}
......@@ -36,6 +36,14 @@ namespace CowboyCafe.Data
return new List<string>();
}
}
/// <summary>
/// To string method tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = "Rustlers Ribs";
return title;
}
}
}
......@@ -99,5 +99,15 @@ namespace CowboyCafe.Data
}
}
/// <summary>
/// To string method tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = "Texas Tea";
title += $", { Enum.GetName(typeof(Size), Size)}";
return title;
}
}
}
......@@ -153,5 +153,15 @@ namespace CowboyCafe.Data
return instructions;
}
}
/// <summary>
/// To string method tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = "Texas Triple Burger";
return title;
}
}
}
......@@ -95,6 +95,14 @@ namespace CowboyCafe.Data
}
}
/// <summary>
/// To string method tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = "Trail Burger";
return title;
}
}
}
......@@ -62,5 +62,16 @@ namespace CowboyCafe.Data
}
}
/// <summary>
/// To string method tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = "Water";
title += $", { Enum.GetName(typeof(Size), Size)}";
return title;
}
}
}
......@@ -7,6 +7,6 @@
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<local:OrderControl Name="Item Menu"/>
<local:OrderControl/>
</Grid>
</Window>
......@@ -24,5 +24,10 @@ namespace PointOfSale
{
InitializeComponent();
}
private void OrderControl_Loaded(object sender, RoutedEventArgs e)
{
}
}
}
......@@ -21,30 +21,30 @@
<StackPanel>
<TextBlock TextAlignment="Center">Enrees</TextBlock>
<Button Name="AngryChickenButton" Click="AngryChickenButton_Click">Angry Chicken</Button>
<Button Name="CowpokeChiliButton">CowPoke Chili</Button>
<Button Name="DakotaDoubleButton">Dakto Double</Button>
<Button Name="PecosPulledPorkButton">Pecos Pulled Pork</Button>
<Button Name="RustlersRibsButton">Rustlers Ribs</Button>
<Button Name="TexasTripleButton">Texas Triple</Button>
<Button Name="TrailBurgerButton">Trail Burger</Button>
<Button Name="CowpokeChiliButton" Click="CowpokeChiliButton_Click">CowPoke Chili</Button>
<Button Name="DakotaDoubleButton" Click="DakotaDoubleButton_Click">Dakto Double</Button>
<Button Name="PecosPulledPorkButton" Click="PecosPulledPorkButton_Click">Pecos Pulled Pork</Button>
<Button Name="RustlersRibsButton" Click="RustlersRibsButton_Click">Rustlers Ribs</Button>
<Button Name="TexasTripleButton" Click="TexasTripleButton_Click">Texas Triple</Button>
<Button Name="TrailBurgerButton" Click="TrailBurgerButton_Click">Trail Burger</Button>
</StackPanel>
<StackPanel Grid.Column="1">
<TextBlock TextAlignment="Center">sides</TextBlock>
<Button Name="ChiliCheeseFriesButton">ChillieCheese Fries</Button>
<Button Name="CornDodgerButton">Corn Dodgers</Button>
<Button Name="PandeCampoButton">Pan de Campo</Button>
<Button Name="ChiliCheeseFriesButton" Click="ChiliCheeseFriesButton_Click">ChillieCheese Fries</Button>
<Button Name="CornDodgerButton" Click="CornDodgerButton_Click">Corn Dodgers</Button>
<Button Name="PandeCampoButton" Click="PandeCampoButton_Click">Pan de Campo</Button>
</StackPanel>
<StackPanel Grid.Column="2">
<TextBlock TextAlignment="Center">Drinks</TextBlock>
<Button Name="JerkedSodeButton">Jerked Soda</Button>
<Button Name="CowboyCoffeButton">Cowboy Coffe</Button>
<Button Name="TexasTeaButton">Texas Tea</Button>
<Button Name="WaterButton">Water</Button>
<Button Name="JerkedSodeButton" Click="JerkedSodeButton_Click">Jerked Soda</Button>
<Button Name="CowboyCoffeButton" Click="CowboyCoffeButton_Click">Cowboy Coffe</Button>
<Button Name="TexasTeaButton" Click="TexasTeaButton_Click">Texas Tea</Button>
<Button Name="WaterButton" Click="WaterButton_Click">Water</Button>
</StackPanel>
<StackPanel Grid.Column="3">
......
......@@ -26,7 +26,86 @@ namespace PointOfSale
private void AngryChickenButton_Click(object sender, RoutedEventArgs e)
{
ticket.Items.Add(new AngryChicken().ToString());
AngryChicken ac = new AngryChicken();
ticket.Items.Add(ac.ToString());
}
private void CowpokeChiliButton_Click(object sender, RoutedEventArgs e)
{
CowpokeChili cp = new CowpokeChili();
ticket.Items.Add(cp.ToString());
}
private void DakotaDoubleButton_Click(object sender, RoutedEventArgs e)
{
DakotaDoubleBurger ddb = new DakotaDoubleBurger();
ticket.Items.Add(ddb.ToString());
}
private void PecosPulledPorkButton_Click(object sender, RoutedEventArgs e)
{
PecosPulledPork ppp = new PecosPulledPork();
ticket.Items.Add(ppp.ToString());
}
private void RustlersRibsButton_Click(object sender, RoutedEventArgs e)
{
RustlersRibs rr = new RustlersRibs();
ticket.Items.Add(rr.ToString());
}
private void TexasTripleButton_Click(object sender, RoutedEventArgs e)
{
TexasTripleBurger ttb = new TexasTripleBurger();
ticket.Items.Add(ttb.ToString());
}
private void TrailBurgerButton_Click(object sender, RoutedEventArgs e)
{
TrailBurger tb = new TrailBurger();
ticket.Items.Add(tb.ToString());
}
private void ChiliCheeseFriesButton_Click(object sender, RoutedEventArgs e)
{
ChiliCheeseFries ccf = new ChiliCheeseFries();
ticket.Items.Add(ccf.ToString());
}
private void CornDodgerButton_Click(object sender, RoutedEventArgs e)
{
CornDodgers cd = new CornDodgers();
ticket.Items.Add(cd.ToString());
}
private void PandeCampoButton_Click(object sender, RoutedEventArgs e)
{
PanDeCampo pdc = new PanDeCampo();
ticket.Items.Add(pdc.ToString());
}
private void JerkedSodeButton_Click(object sender, RoutedEventArgs e)
{
JerkedSoda js = new JerkedSoda();
ticket.Items.Add(js.ToString());
}
private void CowboyCoffeButton_Click(object sender, RoutedEventArgs e)
{
CowboyCoffe cc = new CowboyCoffe();
ticket.Items.Add(cc.ToString());
}
private void TexasTeaButton_Click(object sender, RoutedEventArgs e)
{
TexasTea tt = new TexasTea();
ticket.Items.Add(tt.ToString());
}
private void WaterButton_Click(object sender, RoutedEventArgs e)
{
Water w = new Water();
ticket.Items.Add(w.ToString());
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment