Skip to content

Commit

Permalink
Finished Milestone 4
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfschwartz committed Sep 26, 2020
1 parent f78e44f commit 05ab0d7
Show file tree
Hide file tree
Showing 56 changed files with 2,405 additions and 4 deletions.
8 changes: 7 additions & 1 deletion BleakwindBuffet.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ VisualStudioVersion = 16.0.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Data", "Data\Data.csproj", "{B66B462C-DA57-4DB7-9053-DEBD3953F479}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataTests", "DataTests\DataTests.csproj", "{B58727B9-F783-46C8-BCC7-5122A1A4537E}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DataTests", "DataTests\DataTests.csproj", "{B58727B9-F783-46C8-BCC7-5122A1A4537E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PointOfSale", "PointOfSale\PointOfSale.csproj", "{66460330-E4D0-4BB0-9CA9-1286012BB8A8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -21,6 +23,10 @@ Global
{B58727B9-F783-46C8-BCC7-5122A1A4537E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B58727B9-F783-46C8-BCC7-5122A1A4537E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B58727B9-F783-46C8-BCC7-5122A1A4537E}.Release|Any CPU.Build.0 = Release|Any CPU
{66460330-E4D0-4BB0-9CA9-1286012BB8A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{66460330-E4D0-4BB0-9CA9-1286012BB8A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{66460330-E4D0-4BB0-9CA9-1286012BB8A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{66460330-E4D0-4BB0-9CA9-1286012BB8A8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
8 changes: 7 additions & 1 deletion Data/Drinks/Drink.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using BleakwindBuffet.Data.Enums;
/*
* Author: Matthew Schwartz
* Class name: Drink.cs
* Purpose: Base class for all drinks
*/

using BleakwindBuffet.Data.Enums;
using System;
using System.Collections.Generic;
using System.Text;
Expand Down
8 changes: 7 additions & 1 deletion Data/Entrees/Entree.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System;
/*
* Author: Matthew Schwartz
* Class name: Entree.cs
* Purpose: Base class for all entrees
*/

using System;
using System.Collections.Generic;
using System.Text;

Expand Down
8 changes: 7 additions & 1 deletion Data/Sides/Side.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using BleakwindBuffet.Data.Enums;
/*
* Author: Matthew Schwartz
* Class name: Side.cs
* Purpose: Base class for all sides
*/

using BleakwindBuffet.Data.Enums;
using System;
using System.Collections.Generic;
using System.Text;
Expand Down
Binary file modified Documentation/BleakwindBuffetClassUML.vsdx
Binary file not shown.
9 changes: 9 additions & 0 deletions PointOfSale/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Application x:Class="PointOfSale.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:PointOfSale"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
17 changes: 17 additions & 0 deletions PointOfSale/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace PointOfSale
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
10 changes: 10 additions & 0 deletions PointOfSale/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Windows;

[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
41 changes: 41 additions & 0 deletions PointOfSale/CustomizeDrinks/CustomizeAretinoAppleJuice.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<UserControl x:Class="PointOfSale.CustomizeDrinks.CustomizeAretinoAppleJuice"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:PointOfSale.CustomizeDrinks"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="3*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>


<StackPanel Grid.Row="1">
<Label HorizontalAlignment="Center" FontSize="16">Select a Size:</Label>

<ListBox SelectionMode="Single" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" FontSize="16">
<RadioButton GroupName="Size" IsChecked="True">Small</RadioButton>
<RadioButton GroupName="Size">Medium</RadioButton>
<RadioButton GroupName="Size">Large</RadioButton>
</ListBox>

<Label/>
<Label HorizontalAlignment="Center" FontSize="16">Special Instructions:</Label>
<ListBox Grid.Row="1" Grid.Column="2" VerticalAlignment="Center" FontSize="16">
<CheckBox IsChecked="False">Ice</CheckBox>
</ListBox>
</StackPanel>

<Button Click="ClickDone" Grid.Row="2" Grid.Column="2" FontSize="20">Done</Button>
<Label Grid.ColumnSpan="3" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20">Customize Aretino Apple Juice</Label>
</Grid>
</UserControl>
38 changes: 38 additions & 0 deletions PointOfSale/CustomizeDrinks/CustomizeAretinoAppleJuice.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Author: Matthew Schwartz
* Class name: CustomizeAretinoAppleJuice.xaml.cs
* Purpose: Initializes the customization view for aretino apple juice and allows navigation back to the select drinks view
*/

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace PointOfSale.CustomizeDrinks
{
/// <summary>
/// Interaction logic for CustomizeAretinoAppleJuice.xaml
/// </summary>
public partial class CustomizeAretinoAppleJuice : UserControl
{
public CustomizeAretinoAppleJuice()
{
InitializeComponent();
}
void ClickDone(object sender, RoutedEventArgs e)
{
SelectDrinks custom = new SelectDrinks();
OrderComponent order = this.FindAncestor<OrderComponent>();
order.Swap(custom);
}
}
}
43 changes: 43 additions & 0 deletions PointOfSale/CustomizeDrinks/CustomizeCandlehearthCoffee.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<UserControl x:Class="PointOfSale.CustomizeDrinks.CustomizeCandlehearthCoffee"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:PointOfSale.CustomizeDrinks"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="3*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>


<StackPanel Grid.Row="1">
<Label HorizontalAlignment="Center" FontSize="16">Select a Size:</Label>

<ListBox SelectionMode="Single" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" FontSize="16">
<RadioButton GroupName="Size" IsChecked="True">Small</RadioButton>
<RadioButton GroupName="Size">Medium</RadioButton>
<RadioButton GroupName="Size">Large</RadioButton>
</ListBox>

<Label/>
<Label HorizontalAlignment="Center" FontSize="16">Special Instructions:</Label>
<ListBox Grid.Row="1" Grid.Column="2" VerticalAlignment="Center" FontSize="16">
<CheckBox IsChecked="False">Ice</CheckBox>
<CheckBox IsChecked="False">Cream</CheckBox>
<CheckBox IsChecked="False">Decaf</CheckBox>
</ListBox>
</StackPanel>

<Button Click="ClickDone" Grid.Row="2" Grid.Column="2" FontSize="20">Done</Button>
<Label Grid.ColumnSpan="3" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20">Customize Candlehearth Coffee</Label>
</Grid>
</UserControl>
38 changes: 38 additions & 0 deletions PointOfSale/CustomizeDrinks/CustomizeCandlehearthCoffee.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Author: Matthew Schwartz
* Class name: CustomizeCandlehearthCoffee.xaml.cs
* Purpose: Initializes the customization view for candlehearth coffee and allows navigation back to the select drinks view
*/

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace PointOfSale.CustomizeDrinks
{
/// <summary>
/// Interaction logic for CustomizeCandlehearthCoffee.xaml
/// </summary>
public partial class CustomizeCandlehearthCoffee : UserControl
{
public CustomizeCandlehearthCoffee()
{
InitializeComponent();
}
void ClickDone(object sender, RoutedEventArgs e)
{
SelectDrinks custom = new SelectDrinks();
OrderComponent order = this.FindAncestor<OrderComponent>();
order.Swap(custom);
}
}
}
41 changes: 41 additions & 0 deletions PointOfSale/CustomizeDrinks/CustomizeMarkarthMilk.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<UserControl x:Class="PointOfSale.CustomizeDrinks.CustomizeMarkarthMilk"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:PointOfSale.CustomizeDrinks"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="3*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>


<StackPanel Grid.Row="1">
<Label HorizontalAlignment="Center" FontSize="16">Select a Size:</Label>

<ListBox SelectionMode="Single" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" FontSize="16">
<RadioButton GroupName="Size" IsChecked="True">Small</RadioButton>
<RadioButton GroupName="Size">Medium</RadioButton>
<RadioButton GroupName="Size">Large</RadioButton>
</ListBox>

<Label/>
<Label HorizontalAlignment="Center" FontSize="16">Special Instructions:</Label>
<ListBox Grid.Row="1" Grid.Column="2" VerticalAlignment="Center" FontSize="16">
<CheckBox IsChecked="False">Ice</CheckBox>
</ListBox>
</StackPanel>

<Button Click="ClickDone" Grid.Row="2" Grid.Column="2" FontSize="20">Done</Button>
<Label Grid.ColumnSpan="3" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20">Customize Candlehearth Coffee</Label>
</Grid>
</UserControl>
38 changes: 38 additions & 0 deletions PointOfSale/CustomizeDrinks/CustomizeMarkarthMilk.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Author: Matthew Schwartz
* Class name: CustomizeMarkarthMilk.xaml.cs
* Purpose: Initializes the customization view for markarth milk and allows navigation back to the select drinks view
*/

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace PointOfSale.CustomizeDrinks
{
/// <summary>
/// Interaction logic for CustomizeMarkarthMilk.xaml
/// </summary>
public partial class CustomizeMarkarthMilk : UserControl
{
public CustomizeMarkarthMilk()
{
InitializeComponent();
}
void ClickDone(object sender, RoutedEventArgs e)
{
SelectDrinks custom = new SelectDrinks();
OrderComponent order = this.FindAncestor<OrderComponent>();
order.Swap(custom);
}
}
}
52 changes: 52 additions & 0 deletions PointOfSale/CustomizeDrinks/CustomizeSailorSoda.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<UserControl x:Class="PointOfSale.CustomizeDrinks.CustomizeSailorSoda"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:PointOfSale.CustomizeEntrees"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="3*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Row="1">
<Label HorizontalAlignment="Center" FontSize="16">Select a Flavor:</Label>
<ListBox FontSize="16">
<RadioButton GroupName="Flavor">Blackberry</RadioButton>
<RadioButton GroupName="Flavor">Cherry</RadioButton>
<RadioButton GroupName="Flavor">Grapefruit</RadioButton>
<RadioButton GroupName="Flavor">Lemon</RadioButton>
<RadioButton GroupName="Flavor">Peach</RadioButton>
<RadioButton GroupName="Flavor">Watermelon</RadioButton>
</ListBox>

</StackPanel>

<StackPanel Grid.Row="1" Grid.Column="1">
<Label HorizontalAlignment="Center" FontSize="16">Select a Size:</Label>

<ListBox SelectionMode="Single" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" FontSize="16">
<RadioButton GroupName="Size" IsChecked="True">Small</RadioButton>
<RadioButton GroupName="Size">Medium</RadioButton>
<RadioButton GroupName="Size">Large</RadioButton>
</ListBox>

<Label/>
<Label HorizontalAlignment="Center" FontSize="16">Special Instructions: </Label>
<ListBox Grid.Row="1" Grid.Column="2" VerticalAlignment="Center" FontSize="16">
<CheckBox IsChecked="True">Ice</CheckBox>
</ListBox>
</StackPanel>

<Button Click="ClickDone" Grid.Row="2" Grid.Column="2" FontSize="20">Done</Button>
<Label Grid.ColumnSpan="3" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20">Customize Sailor Soda</Label>
</Grid>
</UserControl>
Loading

0 comments on commit 05ab0d7

Please sign in to comment.