<Window x:Class="Hotel_Course_Project.ClientAddOnOrderWindow"
        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="300" Width="500" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="40"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Button Name="BackBtn" Click="BackBtn_Click">Назад</Button>
        <StackPanel Margin="20,0,0,0" Grid.Column="1" Orientation="Horizontal" Grid.ColumnSpan="2">
            <TextBlock VerticalAlignment="Center">Поиск</TextBlock>
            <TextBox  Name="ClientSeacrhTB" TextChanged="ClientSeacrhTB_TextChanged" VerticalAlignment="Center" Width="100"></TextBox>
            <Button Name="ClientSrchBtn" Click="ClientSrchBtn_Click">Поиск</Button>
        </StackPanel>


        <DataGrid x:Name="ClientList" Grid.Row="1" Grid.ColumnSpan="3" AutoGenerateColumns="False" ColumnWidth="*" IsReadOnly="True" >
            <DataGrid.Columns>
                <DataGridTextColumn Header="Фамилия" Binding="{Binding LName}"></DataGridTextColumn>
                <DataGridTextColumn Header="Имя" Binding="{Binding FName}"></DataGridTextColumn>
                <DataGridTextColumn Header="Отчество" Binding="{Binding MName}"></DataGridTextColumn>
                <DataGridTemplateColumn>
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Button x:Name="ClientSelectBtn" Click="ClientSelectBtn_Click">Выбрать</Button>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Window>
