<Window x:Class="Hotel_Course_Project.RoomAddOnOrderWindow"
        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:materialDesign="https://materialdesigninxaml.net/winfx/xaml/themes"
        xmlns:local="clr-namespace:Hotel_Course_Project"
        mc:Ignorable="d"
        Title="Добавление комнаты" Height="350" Width="500" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="40"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Button x:Name="BackBtn" Click="BackBtn_Click">Отмена</Button>

        <DataGrid x:Name="RoomList" Grid.Row="1" Grid.ColumnSpan="2" AutoGenerateColumns="False" ColumnWidth="*" IsReadOnly="True">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Номер Комнаты" Binding="{Binding NumRoom}"></DataGridTextColumn>
                <DataGridTextColumn Header="Кол-во мест" Binding="{Binding CountOfSeats}"></DataGridTextColumn>
                <DataGridTextColumn Header="Дневная оплата" Binding="{Binding CostPerDay}"></DataGridTextColumn>
                <DataGridTextColumn Header="Статус комнаты" Binding="{Binding RoomStatus.Name}"></DataGridTextColumn>
                <DataGridTemplateColumn>
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Button x:Name="SelectRoomBtn" Click="SelectRoomBtn_Click">Выбрать</Button>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Window>
