<Page x:Class="Hotel_Course_Project.RoomAddOrChangePage"
      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:local="clr-namespace:Hotel_Course_Project"
      xmlns:materialDesign="https://materialdesigninxaml.net/winfx/xaml/themes"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="RoomAddOrChangePage">

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

        <TextBlock Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center">Номер комнаты</TextBlock>
        <TextBlock Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center">Вместимость</TextBlock>
        <TextBlock Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center">Дневная оплата</TextBlock>
        <TextBlock Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center">Состояние комнаты</TextBlock>

        <TextBox x:Name="RNum" Grid.Row="1" Grid.Column="2" Text="{Binding NumRoom}"></TextBox>
        <TextBox x:Name="RRoominess" Grid.Row="2" Grid.Column="2" Text="{Binding CountOfSeats}"></TextBox>
        <TextBox x:Name="RCostPerDay" Grid.Row="3" Grid.Column="2" Text="{Binding CostPerDay}"></TextBox>
        <ComboBox x:Name="RStatus" Grid.Row="4" Grid.Column="2" SelectedItem="{Binding RoomStatus}" DisplayMemberPath="Name" ItemsSource="{Binding Id_RoomStatus.RoomStatus.Id.Name}"></ComboBox>
        <Button x:Name="CancelBtn" Grid.Row="5" Grid.Column="1" IsCancel="True" Click="CancelBtn_Click">Отмена</Button>
        <Button x:Name="AddBtn" Grid.Row="5" Grid.Column="2" IsDefault="True" Click="AddBtn_Click">Добавить</Button>
    </Grid>
</Page>
