1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <Window x:Class="Cafe.ElementsWindows.OrderWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:Cafe.ElementsWindows"
- mc:Ignorable="d"
- Title="Заказ" Height="900" Width="1600" WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize">
- <Grid>
- <Button Name="BackButton" Content="Назад" HorizontalAlignment="Left" Margin="20,17,0,0" VerticalAlignment="Top" Height="39" Width="140" FontSize="25" Click="BackButtonClick"/>
- <Label Content="Столик:" HorizontalAlignment="Left" Margin="140,86,0,0" VerticalAlignment="Top" Height="60" Width="180" Foreground="White" FontSize="36" HorizontalContentAlignment="Right"/>
- <Label Name="Table" HorizontalAlignment="Left" Margin="322,86,0,0" VerticalAlignment="Top" Height="60" Width="700" FontSize="36" Foreground="White"/>
- <Label Content="Официант:" HorizontalAlignment="Left" Margin="134,176,0,0" VerticalAlignment="Top" Height="60" Width="186" Foreground="White" HorizontalContentAlignment="Right" FontSize="36"/>
- <Label Name="Waiter" HorizontalAlignment="Left" Margin="322,176,0,0" VerticalAlignment="Top" Height="60" Width="700" FontSize="36" Foreground="White"/>
- <Label Content="Время:" HorizontalAlignment="Left" Margin="140,266,0,0" VerticalAlignment="Top" Height="60" Width="180" Foreground="White" FontSize="36" HorizontalContentAlignment="Right"/>
- <Label Name="Time" HorizontalAlignment="Left" Margin="322,266,0,0" VerticalAlignment="Top" Height="60" Width="700" FontSize="36" Foreground="White"/>
- <Label Content="Сумма:" HorizontalAlignment="Left" Margin="1077,86,0,0" VerticalAlignment="Top" Height="60" Width="180" Foreground="White" FontSize="36" HorizontalContentAlignment="Right"/>
- <Label Name="SumOfOrder" HorizontalAlignment="Left" Margin="1258,86,0,0" VerticalAlignment="Top" Height="60" Width="250" FontSize="36" Foreground="White"/>
- <Label Name="Ready" Content="Готовность:" HorizontalAlignment="Left" Margin="1052,176,0,0" VerticalAlignment="Top" Height="60" Width="205" Foreground="White" FontSize="36" HorizontalContentAlignment="Right"/>
- <Label x:Name="IsReady" HorizontalAlignment="Left" Margin="1258,176,0,0" VerticalAlignment="Top" Height="60" Width="250" FontSize="36" Foreground="White"/>
- <ListBox x:Name="DishesList" VerticalAlignment="Top" HorizontalAlignment="Center" Width="1500" Height="375"
- ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Auto" d:ItemsSource="{d:SampleData ItemCount=5}" Margin="0,355,0,0">
- <ListBox.ItemsPanel>
- <ItemsPanelTemplate>
- <VirtualizingStackPanel IsItemsHost="True" Orientation="Horizontal"/>
- </ItemsPanelTemplate>
- </ListBox.ItemsPanel>
- <ListBox.ItemTemplate>
- <DataTemplate>
- <StackPanel x:Name="DishStack">
- <Image Source="{Binding Dishes.Picture}" Width="250" Height="250"/>
- <Label Content="{Binding Dishes.Name}" Width="250" Foreground="White" FontSize="25" Height="50"/>
- <Label Content="{Binding Dishes.Price}" Width="250" Foreground="White" FontSize="25" Height="50"/>
- </StackPanel>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- <Button x:Name="Pay" Content="Оплачено" HorizontalAlignment="Center" Margin="0,792,0,0" VerticalAlignment="Top" Height="60" Width="180" FontSize="36" Click="PayButtonClick"/>
- <Button x:Name="ReadyButton" Content="Готово" HorizontalAlignment="Center" Margin="0,792,0,0" VerticalAlignment="Top" Height="60" Width="180" FontSize="36" Click="ReadyButtonClick"/>
- </Grid>
- </Window>
|