diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/App.xaml b/RestaurantManager/RestaurantManager.UniversalWindows/App.xaml new file mode 100644 index 0000000..1642797 --- /dev/null +++ b/RestaurantManager/RestaurantManager.UniversalWindows/App.xaml @@ -0,0 +1,15 @@ + + + + + + \ No newline at end of file diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/App.xaml.cs b/RestaurantManager/RestaurantManager.UniversalWindows/App.xaml.cs new file mode 100644 index 0000000..b03a0c7 --- /dev/null +++ b/RestaurantManager/RestaurantManager.UniversalWindows/App.xaml.cs @@ -0,0 +1,105 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.ApplicationModel; +using Windows.ApplicationModel.Activation; +using Windows.Foundation; +using Windows.Foundation.Collections; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Controls.Primitives; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Input; +using Windows.UI.Xaml.Media; +using Windows.UI.Xaml.Navigation; + +namespace RestaurantManager.UniversalWindows +{ + /// + /// Provides application-specific behavior to supplement the default Application class. + /// + sealed partial class App : Application + { + /// + /// Initializes the singleton application object. This is the first line of authored code + /// executed, and as such is the logical equivalent of main() or WinMain(). + /// + public App() + { + this.InitializeComponent(); + this.Suspending += OnSuspending; + } + + /// + /// Invoked when the application is launched normally by the end user. Other entry points + /// will be used such as when the application is launched to open a specific file. + /// + /// Details about the launch request and process. + protected override void OnLaunched(LaunchActivatedEventArgs e) + { + #if DEBUG + if (System.Diagnostics.Debugger.IsAttached) + { + this.DebugSettings.EnableFrameRateCounter = true; + } + #endif + + Frame rootFrame = Window.Current.Content as Frame; + + // Do not repeat app initialization when the Window already has content, + // just ensure that the window is active + if (rootFrame == null) + { + // Create a Frame to act as the navigation context and navigate to the first page + rootFrame = new Frame(); + + rootFrame.NavigationFailed += OnNavigationFailed; + + if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) + { + //TODO: Load state from previously suspended application + } + + // Place the frame in the current Window + Window.Current.Content = rootFrame; + } + + if (rootFrame.Content == null) + { + // When the navigation stack isn't restored navigate to the first page, + // configuring the new page by passing required information as a navigation + // parameter + rootFrame.Navigate(typeof(MainPage), e.Arguments); + } + + // Ensure the current window is active + Window.Current.Activate(); + } + + /// + /// Invoked when Navigation to a certain page fails + /// + /// The Frame which failed navigation + /// Details about the navigation failure + void OnNavigationFailed(object sender, NavigationFailedEventArgs e) + { + throw new Exception("Failed to load Page " + e.SourcePageType.FullName); + } + + /// + /// Invoked when application execution is being suspended. Application state is saved + /// without knowing whether the application will be terminated or resumed with the contents + /// of memory still intact. + /// + /// The source of the suspend request. + /// Details about the suspend request. + private void OnSuspending(object sender, SuspendingEventArgs e) + { + var deferral = e.SuspendingOperation.GetDeferral(); + //TODO: Save application state and stop any background activity + deferral.Complete(); + } + } +} \ No newline at end of file diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/Assets/LockScreenLogo.scale-200.png b/RestaurantManager/RestaurantManager.UniversalWindows/Assets/LockScreenLogo.scale-200.png new file mode 100644 index 0000000..735f57a Binary files /dev/null and b/RestaurantManager/RestaurantManager.UniversalWindows/Assets/LockScreenLogo.scale-200.png differ diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/Assets/SplashScreen.scale-100.png b/RestaurantManager/RestaurantManager.UniversalWindows/Assets/SplashScreen.scale-100.png new file mode 100644 index 0000000..1c98cc4 Binary files /dev/null and b/RestaurantManager/RestaurantManager.UniversalWindows/Assets/SplashScreen.scale-100.png differ diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/Assets/Square150x150Logo.scale-100.png b/RestaurantManager/RestaurantManager.UniversalWindows/Assets/Square150x150Logo.scale-100.png new file mode 100644 index 0000000..037126d Binary files /dev/null and b/RestaurantManager/RestaurantManager.UniversalWindows/Assets/Square150x150Logo.scale-100.png differ diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/Assets/Square44x44Logo.scale-100.png b/RestaurantManager/RestaurantManager.UniversalWindows/Assets/Square44x44Logo.scale-100.png new file mode 100644 index 0000000..97e6726 Binary files /dev/null and b/RestaurantManager/RestaurantManager.UniversalWindows/Assets/Square44x44Logo.scale-100.png differ diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/RestaurantManager/RestaurantManager.UniversalWindows/Assets/Square44x44Logo.targetsize-24_altform-unplated.png new file mode 100644 index 0000000..f6c02ce Binary files /dev/null and b/RestaurantManager/RestaurantManager.UniversalWindows/Assets/Square44x44Logo.targetsize-24_altform-unplated.png differ diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/Assets/StoreLogo.scale-100.png b/RestaurantManager/RestaurantManager.UniversalWindows/Assets/StoreLogo.scale-100.png new file mode 100644 index 0000000..113ca03 Binary files /dev/null and b/RestaurantManager/RestaurantManager.UniversalWindows/Assets/StoreLogo.scale-100.png differ diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/ExpeditePage.xaml b/RestaurantManager/RestaurantManager.UniversalWindows/ExpeditePage.xaml new file mode 100644 index 0000000..8e96013 --- /dev/null +++ b/RestaurantManager/RestaurantManager.UniversalWindows/ExpeditePage.xaml @@ -0,0 +1,22 @@ + + + + + + + + + \ No newline at end of file diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/ExpeditePage.xaml.cs b/RestaurantManager/RestaurantManager.UniversalWindows/ExpeditePage.xaml.cs new file mode 100644 index 0000000..6c11731 --- /dev/null +++ b/RestaurantManager/RestaurantManager.UniversalWindows/ExpeditePage.xaml.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.Foundation; +using Windows.Foundation.Collections; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Controls.Primitives; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Input; +using Windows.UI.Xaml.Media; +using Windows.UI.Xaml.Navigation; + +// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238 + +namespace RestaurantManager.UniversalWindows +{ + /// + /// An empty page that can be used on its own or navigated to within a Frame. + /// + public sealed partial class ExpeditePage : Page + { + public ExpeditePage() + { + this.InitializeComponent(); + } + } +} diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/MainPage.xaml b/RestaurantManager/RestaurantManager.UniversalWindows/MainPage.xaml new file mode 100644 index 0000000..633c329 --- /dev/null +++ b/RestaurantManager/RestaurantManager.UniversalWindows/MainPage.xaml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/MainPage.xaml.cs b/RestaurantManager/RestaurantManager.UniversalWindows/MainPage.xaml.cs new file mode 100644 index 0000000..b4b38c3 --- /dev/null +++ b/RestaurantManager/RestaurantManager.UniversalWindows/MainPage.xaml.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.Foundation; +using Windows.Foundation.Collections; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Controls.Primitives; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Input; +using Windows.UI.Xaml.Media; +using Windows.UI.Xaml.Navigation; + +// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409 + +namespace RestaurantManager.UniversalWindows +{ + /// + /// An empty page that can be used on its own or navigated to within a Frame. + /// + public sealed partial class MainPage : Page + { + public MainPage() + { + this.InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/OrderPage.xaml b/RestaurantManager/RestaurantManager.UniversalWindows/OrderPage.xaml new file mode 100644 index 0000000..5442046 --- /dev/null +++ b/RestaurantManager/RestaurantManager.UniversalWindows/OrderPage.xaml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/OrderPage.xaml.cs b/RestaurantManager/RestaurantManager.UniversalWindows/OrderPage.xaml.cs new file mode 100644 index 0000000..3b55183 --- /dev/null +++ b/RestaurantManager/RestaurantManager.UniversalWindows/OrderPage.xaml.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.Foundation; +using Windows.Foundation.Collections; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Controls.Primitives; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Input; +using Windows.UI.Xaml.Media; +using Windows.UI.Xaml.Navigation; + +// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238 + +namespace RestaurantManager.UniversalWindows +{ + /// + /// An empty page that can be used on its own or navigated to within a Frame. + /// + public sealed partial class OrderPage : Page + { + public OrderPage() + { + this.InitializeComponent(); + } + } +} diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/Package.appxmanifest b/RestaurantManager/RestaurantManager.UniversalWindows/Package.appxmanifest new file mode 100644 index 0000000..73ca952 --- /dev/null +++ b/RestaurantManager/RestaurantManager.UniversalWindows/Package.appxmanifest @@ -0,0 +1,49 @@ + + + + + + + + + + RestaurantManager.UniversalWindows + Edwidge + Assets\StoreLogo.png + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/Properties/AssemblyInfo.cs b/RestaurantManager/RestaurantManager.UniversalWindows/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..76cf638 --- /dev/null +++ b/RestaurantManager/RestaurantManager.UniversalWindows/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.UniversalWindows")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RestaurantManager.UniversalWindows")] +[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.UniversalWindows/Properties/Default.rd.xml b/RestaurantManager/RestaurantManager.UniversalWindows/Properties/Default.rd.xml new file mode 100644 index 0000000..80a960c --- /dev/null +++ b/RestaurantManager/RestaurantManager.UniversalWindows/Properties/Default.rd.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/RestaurantManager.UniversalWindows.csproj b/RestaurantManager/RestaurantManager.UniversalWindows/RestaurantManager.UniversalWindows.csproj new file mode 100644 index 0000000..b60eb96 --- /dev/null +++ b/RestaurantManager/RestaurantManager.UniversalWindows/RestaurantManager.UniversalWindows.csproj @@ -0,0 +1,154 @@ + + + + + Debug + x86 + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085} + AppContainerExe + Properties + RestaurantManager.UniversalWindows + RestaurantManager.UniversalWindows + en-US + UAP + 10.0.10240.0 + 10.0.10240.0 + 14 + true + 512 + {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + RestaurantManager.UniversalWindows_TemporaryKey.pfx + + + true + bin\ARM\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + ARM + false + prompt + true + + + bin\ARM\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + ARM + false + prompt + true + true + + + true + bin\x64\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x64 + false + prompt + true + + + bin\x64\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x64 + false + prompt + true + true + + + true + bin\x86\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x86 + false + prompt + true + + + bin\x86\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x86 + false + prompt + true + true + + + + + + + + App.xaml + + + ExpeditePage.xaml + + + MainPage.xaml + + + OrderPage.xaml + + + + + + Designer + + + + + + + + + + + + + + + MSBuild:Compile + Designer + + + Designer + MSBuild:Compile + + + MSBuild:Compile + Designer + + + Designer + MSBuild:Compile + + + + 14.0 + + + + \ No newline at end of file diff --git a/RestaurantManager/RestaurantManager.UniversalWindows/project.json b/RestaurantManager/RestaurantManager.UniversalWindows/project.json new file mode 100644 index 0000000..c594939 --- /dev/null +++ b/RestaurantManager/RestaurantManager.UniversalWindows/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.sln b/RestaurantManager/RestaurantManager.sln new file mode 100644 index 0000000..58e6f14 --- /dev/null +++ b/RestaurantManager/RestaurantManager.sln @@ -0,0 +1,40 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.23107.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestaurantManager.UniversalWindows", "RestaurantManager.UniversalWindows\RestaurantManager.UniversalWindows.csproj", "{68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|ARM = Debug|ARM + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|ARM = Release|ARM + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Debug|ARM.ActiveCfg = Debug|ARM + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Debug|ARM.Build.0 = Debug|ARM + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Debug|ARM.Deploy.0 = Debug|ARM + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Debug|x64.ActiveCfg = Debug|x64 + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Debug|x64.Build.0 = Debug|x64 + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Debug|x64.Deploy.0 = Debug|x64 + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Debug|x86.ActiveCfg = Debug|x86 + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Debug|x86.Build.0 = Debug|x86 + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Debug|x86.Deploy.0 = Debug|x86 + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Release|ARM.ActiveCfg = Release|ARM + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Release|ARM.Build.0 = Release|ARM + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Release|ARM.Deploy.0 = Release|ARM + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Release|x64.ActiveCfg = Release|x64 + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Release|x64.Build.0 = Release|x64 + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Release|x64.Deploy.0 = Release|x64 + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Release|x86.ActiveCfg = Release|x86 + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Release|x86.Build.0 = Release|x86 + {68FFC1ED-FF3F-4A5C-8199-F950CD0D6085}.Release|x86.Deploy.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal