Commit 0e7ad030 authored by IJSlater's avatar IJSlater
Browse files

added website search form

parent be4ce77f

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29613.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Data", "Data\Data.csproj", "{C3BFDB18-4ACD-495B-9CCE-675B7A8FD8FE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DataTests", "DataTests\DataTests.csproj", "{157E0096-37C4-4A66-80B0-337D690719F2}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{938FDA09-9346-4837-A3AE-EA1B3485B73F}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
CashRegister.dll = CashRegister.dll
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PointOfSale", "PointOfSale\PointOfSale.csproj", "{4358B429-68E7-41CA-9A21-3DCD273149A5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Website", "Website\Website.csproj", "{2580519D-B4A2-4E4A-8DDD-CDA2B7539209}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C3BFDB18-4ACD-495B-9CCE-675B7A8FD8FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C3BFDB18-4ACD-495B-9CCE-675B7A8FD8FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C3BFDB18-4ACD-495B-9CCE-675B7A8FD8FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C3BFDB18-4ACD-495B-9CCE-675B7A8FD8FE}.Release|Any CPU.Build.0 = Release|Any CPU
{157E0096-37C4-4A66-80B0-337D690719F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{157E0096-37C4-4A66-80B0-337D690719F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{157E0096-37C4-4A66-80B0-337D690719F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{157E0096-37C4-4A66-80B0-337D690719F2}.Release|Any CPU.Build.0 = Release|Any CPU
{4358B429-68E7-41CA-9A21-3DCD273149A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4358B429-68E7-41CA-9A21-3DCD273149A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4358B429-68E7-41CA-9A21-3DCD273149A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4358B429-68E7-41CA-9A21-3DCD273149A5}.Release|Any CPU.Build.0 = Release|Any CPU
{2580519D-B4A2-4E4A-8DDD-CDA2B7539209}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2580519D-B4A2-4E4A-8DDD-CDA2B7539209}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2580519D-B4A2-4E4A-8DDD-CDA2B7539209}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2580519D-B4A2-4E4A-8DDD-CDA2B7539209}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {EF0ECCFA-B4C0-4862-B136-C797D24E1A41}
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29613.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Data", "Data\Data.csproj", "{C3BFDB18-4ACD-495B-9CCE-675B7A8FD8FE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DataTests", "DataTests\DataTests.csproj", "{157E0096-37C4-4A66-80B0-337D690719F2}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{938FDA09-9346-4837-A3AE-EA1B3485B73F}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
CashRegister.dll = CashRegister.dll
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PointOfSale", "PointOfSale\PointOfSale.csproj", "{4358B429-68E7-41CA-9A21-3DCD273149A5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Website", "Website\Website.csproj", "{2580519D-B4A2-4E4A-8DDD-CDA2B7539209}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C3BFDB18-4ACD-495B-9CCE-675B7A8FD8FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C3BFDB18-4ACD-495B-9CCE-675B7A8FD8FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C3BFDB18-4ACD-495B-9CCE-675B7A8FD8FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C3BFDB18-4ACD-495B-9CCE-675B7A8FD8FE}.Release|Any CPU.Build.0 = Release|Any CPU
{157E0096-37C4-4A66-80B0-337D690719F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{157E0096-37C4-4A66-80B0-337D690719F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{157E0096-37C4-4A66-80B0-337D690719F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{157E0096-37C4-4A66-80B0-337D690719F2}.Release|Any CPU.Build.0 = Release|Any CPU
{4358B429-68E7-41CA-9A21-3DCD273149A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4358B429-68E7-41CA-9A21-3DCD273149A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4358B429-68E7-41CA-9A21-3DCD273149A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4358B429-68E7-41CA-9A21-3DCD273149A5}.Release|Any CPU.Build.0 = Release|Any CPU
{2580519D-B4A2-4E4A-8DDD-CDA2B7539209}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2580519D-B4A2-4E4A-8DDD-CDA2B7539209}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2580519D-B4A2-4E4A-8DDD-CDA2B7539209}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2580519D-B4A2-4E4A-8DDD-CDA2B7539209}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {EF0ECCFA-B4C0-4862-B136-C797D24E1A41}
EndGlobalSection
EndGlobal
/*
* Ian Slater
* Angry chicken : Entree
* Data structure to resemble Angry chicken entree
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace CowboyCafe.Data
{
public class AngryChicken : Entree
{
/// <summary>
/// event to trigger when special instructions are changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// The price of the Sandwich
/// </summary>
public override double Price
{
get
{
return 5.99;
}
}
/// <summary>
/// The calories of the sandwich
/// </summary>
public override uint Calories
{
get
{
return 190;
}
}
private bool bread = true;
/// <summary>
/// Determins if the sandwich has bread.
/// </summary>
public bool Bread
{
get { return bread; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Bread"));
bread = value;
}
}
private bool pickle =true;
/// <summary>
/// Determins if the sandwich has pickles.
/// </summary>
public bool Pickle
{
get { return pickle; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Pickle"));
pickle = value;
}
}
public override List<string> SpecialInstructions
{
get
{
var instructions = new List<string>();
if (!bread) instructions.Add("hold bread");
if (!pickle) instructions.Add("hold pickle");
return instructions;
}
}
/// <summary>
/// Changs to string to be the
/// </summary>
/// <returns></returns>
public override string ToString()
{
return "Angry Chicken";
}
}
}
/*
* Ian Slater
* Angry chicken : Entree
* Data structure to resemble Angry chicken entree
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace CowboyCafe.Data
{
public class AngryChicken : Entree
{
/// <summary>
/// event to trigger when special instructions are changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// The price of the Sandwich
/// </summary>
public override double Price
{
get
{
return 5.99;
}
}
/// <summary>
/// The calories of the sandwich
/// </summary>
public override uint Calories
{
get
{
return 190;
}
}
private bool bread = true;
/// <summary>
/// Determins if the sandwich has bread.
/// </summary>
public bool Bread
{
get { return bread; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Bread"));
bread = value;
}
}
private bool pickle =true;
/// <summary>
/// Determins if the sandwich has pickles.
/// </summary>
public bool Pickle
{
get { return pickle; }
set {
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Pickle"));
pickle = value;
}
}
public override List<string> SpecialInstructions
{
get
{
var instructions = new List<string>();
if (!bread) instructions.Add("hold bread");
if (!pickle) instructions.Add("hold pickle");
return instructions;
}
}
/// <summary>
/// Changs to string to be the
/// </summary>
/// <returns></returns>
public override string ToString()
{
return "Angry Chicken";
}
}
}
/*
* Ian Slater
* Baked Beans : Side
* Data structure to resemble Baked Beans side
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace CowboyCafe.Data
{
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
{
size = value;
if(PropertyChanged!=null)
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Size"));
}
}
/// <summary>
/// Returns the items price
/// </summary>
public override double Price
{
get
{
if (Size == Size.Small)
{
return 1.59;
}
else if (Size == Size.Medium)
{
return 1.79;
}
else if (Size == Size.Large)
{
return 1.99;
}
throw new NotImplementedException("unknown size");
}
}
/// <summary>
/// Returns the Calories in the item
/// </summary>
public override uint Calories
{
get
{
if (Size == Size.Small)
{
return 312;
}
else if (Size == Size.Medium)
{
return 378;
}
else if (Size == Size.Large)
{
return 410;
}
throw new NotImplementedException("unknown size");
}
}
/// <summary>
/// To string method tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = $"{ Enum.GetName(typeof(Size), Size)}";
title += " Baked Beans";
return title;
}
}
}
/*
* Ian Slater
* Baked Beans : Side
* Data structure to resemble Baked Beans side
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace CowboyCafe.Data
{
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
{
size = value;
if(PropertyChanged!=null)
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Size"));
}
}
/// <summary>
/// Returns the items price
/// </summary>
public override double Price
{
get
{
if (Size == Size.Small)
{
return 1.59;
}
else if (Size == Size.Medium)
{
return 1.79;
}
else if (Size == Size.Large)
{
return 1.99;
}
throw new NotImplementedException("unknown size");
}
}
/// <summary>
/// Returns the Calories in the item
/// </summary>
public override uint Calories
{
get
{
if (Size == Size.Small)
{
return 312;
}
else if (Size == Size.Medium)
{
return 378;
}
else if (Size == Size.Large)
{
return 410;
}
throw new NotImplementedException("unknown size");
}
}
/// <summary>
/// To string method tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = $"{ Enum.GetName(typeof(Size), Size)}";
title += " Baked Beans";
return title;
}
}
}
/*
* Ian Slater
* Chillie Cheese Fries : Side
* Data structure to resemble ChillieCheese Fries side
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
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
{
size = value;
if (PropertyChanged != null)
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Size"));
}
}
/// <summary>
/// Returns the items price
/// </summary>
public override double Price
{
get
{
if (Size == Size.Small)
{
return 1.99;
}
else if (Size == Size.Medium)
{
return 2.99;
}
else if (Size == Size.Large)
{
return 3.99;
}
throw new NotImplementedException("unknown size");
}
}
/// <summary>
/// Returns the Calories in the item
/// </summary>
public override uint Calories
{
get
{
if (Size == Size.Small)
{
return 433;
}
else if (Size == Size.Medium)
{
return 524;
}
else if (Size == Size.Large)
{
return 610;
}
throw new NotImplementedException("unknown size"); ;
}
}
/// <summary>
/// To string method tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = $"{ Enum.GetName(typeof(Size), Size)}";
title += " Chili Cheese Fries";
return title;
}
}
}
/*
* Ian Slater
* Chillie Cheese Fries : Side
* Data structure to resemble ChillieCheese Fries side
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
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
{
size = value;
if (PropertyChanged != null)
PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Size"));
}
}
/// <summary>
/// Returns the items price
/// </summary>
public override double Price
{
get
{
if (Size == Size.Small)
{
return 1.99;
}
else if (Size == Size.Medium)
{
return 2.99;