<Page x:Class="Hotel_Course_Project.OrderChangeOrAddPage"
      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:materialDesign="https://materialdesigninxaml.net/winfx/xaml/themes"
      xmlns:local="clr-namespace:Hotel_Course_Project"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="Добавление заказа">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center">Клиент:</TextBlock>
        <TextBlock Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center">Комната:</TextBlock>
        <TextBlock Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center">Начало периода:</TextBlock>
        <TextBlock Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center">Конец периода:</TextBlock>
        <TextBlock Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Center">Оплата:</TextBlock>

        <StackPanel Margin="10,0,0,0" Orientation="Horizontal" Grid.Row="0" Grid.Column="1">
            <TextBlock x:Name="SClient" VerticalAlignment="Center"></TextBlock>
            <Button x:Name="SClientBtn" Click="SClientBtn_Click">Добавить</Button>
        </StackPanel>

        <StackPanel Margin="10,0,0,0" Orientation="Horizontal" Grid.Row="1" Grid.Column="1">
            <TextBlock VerticalAlignment="Center" x:Name="SRoom"></TextBlock>
            <Button x:Name="SRoomBtn" Click="SRoomBtn_Click">Добавить</Button>
        </StackPanel>

        <TextBlock Margin="10,0,0,0" x:Name="SOrderDateStart" Grid.Row="2" Grid.Column="1" VerticalAlignment="Center"></TextBlock>
        <DatePicker Margin="10,0,0,0" x:Name="SOrderDateEnd" Grid.Row="3" Grid.Column="1" VerticalAlignment="Center"></DatePicker>

        <Button Width="120" x:Name="PayMakeBtn" Click="PayMakeBtn_Click" Grid.Row="4" Grid.Column="1">Совершить платёж</Button>
        <StackPanel Margin="10,0,0,0" Grid.Row="4" Grid.Column="1" Name="PaySP">
            <StackPanel Orientation="Horizontal">
                <TextBlock>Стоимость: </TextBlock>
                <TextBlock Margin="10,0,0,0" Name="SPayEndSum"></TextBlock>
            </StackPanel>
            <StackPanel Margin="0,20,0,0" Orientation="Horizontal">
                <TextBlock>Вид платежа: </TextBlock>
                <TextBlock Margin="10,0,0,0" Name="SPayType"></TextBlock>
            </StackPanel>
        </StackPanel>

        <Button Grid.Row="5" Grid.Column="1" x:Name="AddOrChangeBtn" Click="AddOrChangeBtn_Click" HorizontalAlignment="Center" VerticalAlignment="Center">Подтвердить</Button>
        <Button Name="CancelOrderBtn" Click="CancelOrderBtn_Click" Grid.Row="5" HorizontalAlignment="Center" VerticalAlignment="Center">Назад</Button>
    </Grid>
</Page>
