Skip to content

Commit

Permalink
week3
Browse files Browse the repository at this point in the history
  • Loading branch information
keithvis committed Nov 10, 2015
1 parent 6e532f8 commit dafd88a
Show file tree
Hide file tree
Showing 51 changed files with 674 additions and 314 deletions.
File renamed without changes.
Binary file modified RestaurantManager/.vs/RestaurantManager/v14/.suo
Binary file not shown.
10 changes: 8 additions & 2 deletions RestaurantManager/RestaurantManager/ExpeditePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@
<Grid.RowDefinitions>
<RowDefinition Height="0.9*"></RowDefinition>
<RowDefinition Height="0.1*"></RowDefinition>

</Grid.RowDefinitions>
<TextBlock x:Name="textBlock" Foreground="White" FontSize="32" HorizontalAlignment="Center" Margin="195,0,175,-8" Grid.Row="1" TextWrapping="Wrap" Text="**Clear all Orders**" VerticalAlignment="Bottom"/>
<Button Foreground="White" Background="Gray" FontSize="32" HorizontalAlignment="Center" Margin="195,0,160,2" Content="**Clear all Orders**" VerticalAlignment="Bottom" Grid.RowSpan="2" Click="Button_Click" Width="285" />
<GridView x:Name="gridView" HorizontalAlignment="Left" Margin="10,77,0,0" VerticalAlignment="Top" Width="620" Height="237"/>
<AppBar>
<AppBarButton x:Name="appBarButton" HorizontalAlignment="Left" Icon="Home" Label="Home" Margin="10,5,0,-45" VerticalAlignment="Top" Width="68" Click="appBarButton_Click"/>

</AppBar>
<!--<TextBlock x:Name="textBlock" Foreground="White" FontSize="32" HorizontalAlignment="Center" Margin="195,0,175,-8" Grid.Row="1" TextWrapping="Wrap" Text="**Clear all Orders**" VerticalAlignment="Bottom"/>-->
</Grid>
</Page>
41 changes: 41 additions & 0 deletions RestaurantManager/RestaurantManager/ExpeditePage.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class ExpeditePage : Page

{
public ExpeditePage()
{
this.InitializeComponent();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
//Frame.Navigate(typeof(MainPage));
}

private void appBarButton_Click(object sender, RoutedEventArgs e)
{
Frame.Navigate(typeof(MainPage));

}
}
}
7 changes: 4 additions & 3 deletions RestaurantManager/RestaurantManager/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@

</Grid.ColumnDefinitions>
<TextBlock x:Name="textBlock" Foreground="White" FontSize="32" HorizontalAlignment="Center" Margin="164,0,162,0" TextWrapping="Wrap" Text="Restaurant Manager" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Width="314" Height="42"/>
<TextBlock x:Name="textBlock1" Foreground="White" FontSize="32" Grid.Column="1" HorizontalAlignment="Left" Margin="121,82,0,0" Grid.Row="2" TextWrapping="Wrap" Text="**SubmitOrder**" VerticalAlignment="Top"/>
<!--<TextBlock x:Name="textBlock1" Foreground="White" FontSize="32" Grid.Column="1" HorizontalAlignment="Left" Margin="121,82,0,0" Grid.Row="2" TextWrapping="Wrap" Text="**SubmitOrder**" VerticalAlignment="Top"/>-->
<Button Foreground="White" FontSize="32" Grid.Column="1" HorizontalAlignment="Left" Margin="71,72,0,0" Grid.Row="2" Background="Gray" Content="**SubmitOrder**" VerticalAlignment="Top" Click="Button_Click" />
<TextBlock x:Name="textBlock3" Foreground="White" HorizontalAlignment="Center" Margin="257,14,250,0" Grid.Row="1" TextWrapping="Wrap" Text="Internal Test Version" VerticalAlignment="Bottom" Grid.ColumnSpan="2"/>
<!--<Button x:Name="button" Content="**Go to Orders View**" Click="handleclick" Foreground="White" FontSize="32" HorizontalAlignment="Left" Margin="0,72,0,0" Grid.Row="2" VerticalAlignment="Top" Width="320"/>-->
<TextBlock Text="**Go to Orders View**" Foreground="White" FontSize="32" HorizontalAlignment="Left" Margin="0,72,0,0" Grid.Row="2" VerticalAlignment="Top" Width="320" />
<Button x:Name="button" Content="**Go to Orders View**" Background="Gray" Click="handleclick" Foreground="White" FontSize="32" HorizontalAlignment="Left" Margin="0,72,0,0" Grid.Row="2" VerticalAlignment="Top" Width="320"/>
<!--<TextBlock Text="**Go to Orders View**" Foreground="White" FontSize="32" HorizontalAlignment="Left" Margin="0,72,0,0" Grid.Row="2" VerticalAlignment="Top" Width="320" />-->
</Grid>
</Page>
13 changes: 13 additions & 0 deletions RestaurantManager/RestaurantManager/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ public MainPage()
{
this.InitializeComponent();
}

private void Button_Click(object sender, RoutedEventArgs e)
{
Frame.Navigate(typeof(OrderPage));

}

private void handleclick(object sender, RoutedEventArgs e)
{

Frame.Navigate(typeof(ExpeditePage));

}
//private async void handleclick(object sender,RoutedEventArgs e)
//{
// await new Windows.UI.Popups.MessageDialog("you clicked me").ShowAsync();
Expand Down
12 changes: 10 additions & 2 deletions RestaurantManager/RestaurantManager/OrderPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@
<ColumnDefinition Width="0.25*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock x:Name="textBlock" Foreground="White" Grid.Column="1" HorizontalAlignment="Left" Margin="53,6,0,0" Grid.Row="1" TextWrapping="Wrap" Text="Special Requests: Order Items:" VerticalAlignment="Top" Grid.ColumnSpan="2"/>
<TextBlock x:Name="textBlock2" Foreground="White" Grid.Column="1" HorizontalAlignment="Stretch" Margin="97,7,100,9" Grid.Row="4" TextWrapping="Wrap" Text="**Submit Order**" VerticalAlignment="Center" Grid.ColumnSpan="2"/>
<Button x:Name="button" Content="**Add to Order**" Foreground="White" HorizontalAlignment="Center" Margin="149,3,58,13" Grid.Row="4" VerticalAlignment="Center"/>
<!--<TextBlock x:Name="textBlock2" Foreground="White" Grid.Column="1" HorizontalAlignment="Stretch" Margin="97,7,100,9" Grid.Row="4" TextWrapping="Wrap" Text="**Submit Order**" VerticalAlignment="Center" Grid.ColumnSpan="2"/>-->
<Button x:Name="button" Content="**Add to Order**" Background="Gray" Foreground="White" HorizontalAlignment="Center" Margin="98,0,61,3" Grid.Row="4" VerticalAlignment="Center" Height="33" Width="161"/>
<Button x:Name="button1" Content="**Submit Order**" Background="Gray" Foreground="White" Grid.Column="1" HorizontalAlignment="Stretch" Margin="97,4,60,3" Grid.Row="4" VerticalAlignment="Center" Grid.ColumnSpan="2" Height="29"/>
<ListView x:Name="listView" Grid.Column="2" HorizontalAlignment="Left" Height="160" Margin="10,10,0,0" Grid.Row="2" VerticalAlignment="Top" Width="140"/>
<ListView x:Name="listView1" HorizontalAlignment="Left" Height="160" Margin="10,10,0,0" Grid.Row="2" VerticalAlignment="Top" Width="89"/>
<AppBar Grid.ColumnSpan="3" Height="72" Margin="0,0,10,0"

>
<AppBarButton x:Name="appBarButton" HorizontalAlignment="Left" Icon="Home" Label="Home" VerticalAlignment="Top" Click="appBarButton_Click_1"/>
</AppBar>
</Grid>
</Page>
42 changes: 42 additions & 0 deletions RestaurantManager/RestaurantManager/OrderPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class OrderPage : Page

{
public OrderPage()
{
this.InitializeComponent();
}

private void appBarButton_Click(object sender, RoutedEventArgs e)
{
Frame.Navigate(typeof(MainPage));
}

private void appBarButton_Click_1(object sender, RoutedEventArgs e)
{
Frame.Navigate(typeof(MainPage));

}
}
}
6 changes: 6 additions & 0 deletions RestaurantManager/RestaurantManager/RestaurantManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,15 @@
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<Compile Include="ExpeditePage.xaml.cs">
<DependentUpon>ExpeditePage.xaml</DependentUpon>
</Compile>
<Compile Include="MainPage.xaml.cs">
<DependentUpon>MainPage.xaml</DependentUpon>
</Compile>
<Compile Include="OrderPage.xaml.cs">
<DependentUpon>OrderPage.xaml</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,73 @@
<RootProperty Name="RowDefinitions" />
<RootProperty Name="Children" />
<RootProperty Name="ColumnDefinitions" />
<RootMethod Name="GetRow" />
<RootMethod Name="SetRow" />
<RootMethod Name="GetRowSpan" />
<RootMethod Name="SetRowSpan" />
<RootMethod Name="GetColumnSpan" />
<RootMethod Name="SetColumnSpan" />
<RootMethod Name="GetColumn" />
<RootMethod Name="SetColumn" />
<RootMethod Name="GetRow" />
<RootMethod Name="SetRow" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.RowDefinition">
<RootProperty Name="Height" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.TextBlock">
<RootType FullName="Windows.UI.Xaml.Controls.Button">
<RootProperty Name="Foreground" />
<RootProperty Name="Background" />
<RootProperty Name="FontSize" />
<RootProperty Name="HorizontalAlignment" />
<RootProperty Name="Margin" />
<RootProperty Name="TextWrapping" />
<RootProperty Name="Text" />
<RootProperty Name="Content" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="Width" />
<RootProperty Name="Height" />
<RootEvent Name="Click" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.GridView">
<RootProperty Name="HorizontalAlignment" />
<RootProperty Name="Margin" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="Width" />
<RootProperty Name="Height" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.AppBar">
<RootProperty Name="Content" />
<RootProperty Name="Height" />
<RootProperty Name="Margin" />
</RootType>
<RootType FullName="Windows.UI.Xaml.Controls.AppBarButton">
<RootProperty Name="HorizontalAlignment" />
<RootProperty Name="Icon" />
<RootProperty Name="Label" />
<RootProperty Name="Margin" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="Width" />
<RootEvent Name="Click" />
</RootType>
<RootType FullName="RestaurantManager.ExpeditePage" />
<RootType FullName="Windows.UI.Xaml.Controls.ColumnDefinition">
<RootProperty Name="Width" />
</RootType>
<RootType FullName="RestaurantManager.MainPage" />
<RootType FullName="Windows.UI.Xaml.Controls.Button">
<RootProperty Name="Content" />
<RootType FullName="Windows.UI.Xaml.Controls.TextBlock">
<RootProperty Name="Foreground" />
<RootProperty Name="FontSize" />
<RootProperty Name="HorizontalAlignment" />
<RootProperty Name="Margin" />
<RootProperty Name="TextWrapping" />
<RootProperty Name="Text" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="Width" />
<RootProperty Name="Height" />
</RootType>
<RootType FullName="RestaurantManager.MainPage" />
<RootType FullName="Windows.UI.Xaml.Controls.ListView">
<RootProperty Name="HorizontalAlignment" />
<RootProperty Name="Height" />
<RootProperty Name="Margin" />
<RootProperty Name="VerticalAlignment" />
<RootProperty Name="Width" />
</RootType>
<RootType FullName="RestaurantManager.OrderPage" />
</Roots.RootTypes>
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit dafd88a

Please sign in to comment.