From 33165089e18ec288d325d993b4a60c70d7ac61a0 Mon Sep 17 00:00:00 2001 From: OnlyOneBDS Date: Fri, 2 Oct 2015 10:15:58 -0400 Subject: [PATCH] Module 4 Homework Homework assignment for Module 4 --- .../RestaurantManager.Models/DataManager.cs | 34 +++++ .../Properties/AssemblyInfo.cs | 29 ++++ .../RestaurantManager.Models.rd.xml | 33 +++++ .../RestaurantManager.Models.csproj | 125 ++++++++++++++++++ .../RestaurantManager.Models/project.json | 16 +++ .../App.xaml | 2 + .../ExpeditePage.xaml | 2 +- .../OrderPage.xaml | 4 +- .../Package.appxmanifest | 39 ++---- .../RestaurantManager.UniversalWindows.csproj | 6 + RestaurantManager/RestaurantManager.sln | 22 +++ 11 files changed, 279 insertions(+), 33 deletions(-) create mode 100644 RestaurantManager/RestaurantManager.Models/DataManager.cs create mode 100644 RestaurantManager/RestaurantManager.Models/Properties/AssemblyInfo.cs create mode 100644 RestaurantManager/RestaurantManager.Models/Properties/RestaurantManager.Models.rd.xml create mode 100644 RestaurantManager/RestaurantManager.Models/RestaurantManager.Models.csproj create mode 100644 RestaurantManager/RestaurantManager.Models/project.json diff --git a/RestaurantManager/RestaurantManager.Models/DataManager.cs b/RestaurantManager/RestaurantManager.Models/DataManager.cs new file mode 100644 index 0000000..3dd359b --- /dev/null +++ b/RestaurantManager/RestaurantManager.Models/DataManager.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; + +namespace RestaurantManager.Models +{ + public class DataManager + { + public DataManager() + { + OrderItems = new ObservableCollection(new List + { + "Steak, Chicken, Peas", + "Rice, Chicken", + "Hummus, Pita", + }); + + MenuItems = new List + { + "Steak", "Chicken", "Peas", + "Rice", "Hummus", "Pita", + }; + + CurrentlySelectedMenuItems = new List + { + "Rice", "Pita", + }; + } + + public ObservableCollection OrderItems { get; set; } + public List MenuItems { get; set; } + public List CurrentlySelectedMenuItems { get; set; } + } +} \ No newline at end of file diff --git a/RestaurantManager/RestaurantManager.Models/Properties/AssemblyInfo.cs b/RestaurantManager/RestaurantManager.Models/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..3b03100 --- /dev/null +++ b/RestaurantManager/RestaurantManager.Models/Properties/AssemblyInfo.cs @@ -0,0 +1,29 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("RestaurantManager.Models")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RestaurantManager.Models")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: ComVisible(false)] \ No newline at end of file diff --git a/RestaurantManager/RestaurantManager.Models/Properties/RestaurantManager.Models.rd.xml b/RestaurantManager/RestaurantManager.Models/Properties/RestaurantManager.Models.rd.xml new file mode 100644 index 0000000..76554d3 --- /dev/null +++ b/RestaurantManager/RestaurantManager.Models/Properties/RestaurantManager.Models.rd.xml @@ -0,0 +1,33 @@ + + + + + + + + + diff --git a/RestaurantManager/RestaurantManager.Models/RestaurantManager.Models.csproj b/RestaurantManager/RestaurantManager.Models/RestaurantManager.Models.csproj new file mode 100644 index 0000000..c1553c4 --- /dev/null +++ b/RestaurantManager/RestaurantManager.Models/RestaurantManager.Models.csproj @@ -0,0 +1,125 @@ + + + + + Debug + AnyCPU + {F9C8B7B1-3A09-49D2-9BD5-F0A90ADAC174} + Library + Properties + RestaurantManager.Models + RestaurantManager.Models + en-US + UAP + 10.0.10240.0 + 10.0.10240.0 + 14 + 512 + {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + prompt + 4 + + + ARM + true + bin\ARM\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + ARM + false + prompt + + + ARM + bin\ARM\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + ARM + false + prompt + + + x64 + true + bin\x64\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x64 + false + prompt + + + x64 + bin\x64\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x64 + false + prompt + + + x86 + true + bin\x86\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x86 + false + prompt + + + x86 + bin\x86\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x86 + false + prompt + + + + + + + + + + + + 14.0 + + + + \ No newline at end of file diff --git a/RestaurantManager/RestaurantManager.Models/project.json b/RestaurantManager/RestaurantManager.Models/project.json new file mode 100644 index 0000000..c594939 --- /dev/null +++ b/RestaurantManager/RestaurantManager.Models/project.json @@ -0,0 +1,16 @@ +{ + "dependencies": { + "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0" + }, + "frameworks": { + "uap10.0": {} + }, + "runtimes": { + "win10-arm": {}, + "win10-arm-aot": {}, + "win10-x86": {}, + "win10-x86-aot": {}, + "win10-x64": {}, + "win10-x64-aot": {} + } +} \ No newline at end of file diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/App.xaml b/RestaurantManager/RestaurantManager.UniversalWindows/App.xaml index 1642797..fc44f5f 100644 --- a/RestaurantManager/RestaurantManager.UniversalWindows/App.xaml +++ b/RestaurantManager/RestaurantManager.UniversalWindows/App.xaml @@ -3,8 +3,10 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:RestaurantManager.UniversalWindows" + xmlns:models="using:RestaurantManager.Models" RequestedTheme="Dark"> + diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/ExpeditePage.xaml b/RestaurantManager/RestaurantManager.UniversalWindows/ExpeditePage.xaml index 897890e..b13cb9f 100644 --- a/RestaurantManager/RestaurantManager.UniversalWindows/ExpeditePage.xaml +++ b/RestaurantManager/RestaurantManager.UniversalWindows/ExpeditePage.xaml @@ -18,7 +18,7 @@ - +