<Page x:Class="Logistics_application.SenderList"
      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:Logistics_application"
      mc:Ignorable="d" 
      d:DesignHeight="400" d:DesignWidth="600"
      Title="SenderList">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="45"/>
            <RowDefinition Height="306"/>
            <RowDefinition Height="45"/>
        </Grid.RowDefinitions>

        <DataGrid Name="table" HorizontalAlignment="Left" AutoGenerateColumns="False" Height="195" Margin="10,37,0,0" VerticalAlignment="Top" Width="356" Grid.Row="1">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding ID_Sender}" Header="ID" Width="*"/>
                <DataGridTextColumn Binding="{Binding Surname}" Header="Surname" Width="3*"/>
                <DataGridTextColumn Binding="{Binding Name}" Header="Name" Width="2*"/>
                <DataGridTextColumn Binding="{Binding MiddleName}" Header="MiddleName" Width="4*"/>
                <DataGridTextColumn Binding="{Binding PhoneNumber}" Header="PhoneNumber" Width="5*"/>
                <DataGridTextColumn Binding="{Binding City}" Header="City" Width="2*"/>
            </DataGrid.Columns>
        </DataGrid>

        <TextBox Name="txtID" HorizontalAlignment="Left" Height="23" Margin="470,5,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Grid.Row="1"/>
        <Label x:Name="label" Content="ID" HorizontalAlignment="Left" Margin="371,5,0,0" VerticalAlignment="Top" Grid.Row="1" Width="94"/>
        <TextBox Name="txtSurname" HorizontalAlignment="Left" Height="23" Margin="470,33,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Grid.Row="1"/>
        <Label x:Name="label1" Content="Surname" HorizontalAlignment="Left" Margin="371,33,0,0" VerticalAlignment="Top" Grid.Row="1" Width="94"/>
        <TextBox Name="txtName" HorizontalAlignment="Left" Height="23" Margin="470,61,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Grid.Row="1"/>
        <Label x:Name="label2" Content="Name" HorizontalAlignment="Left" Margin="371,61,0,0" VerticalAlignment="Top" Grid.Row="1" Width="94"/>
        <TextBox Name="txtMiddleName" HorizontalAlignment="Left" Height="23" Margin="470,89,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Grid.Row="1"/>
        <Label x:Name="label3" Content="MiddleName" HorizontalAlignment="Left" Margin="371,89,0,0" VerticalAlignment="Top" Grid.Row="1" Width="94"/>
        <TextBox Name="txtPhoneNumber" HorizontalAlignment="Left" Height="23" Margin="470,117,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Grid.Row="1"/>
        <Label x:Name="label4" Content="PhoneNumber" HorizontalAlignment="Left" Margin="371,117,0,0" VerticalAlignment="Top" Grid.Row="1" Width="94"/>
        <TextBox Name="txtCity" HorizontalAlignment="Left" Height="23" Margin="470,145,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Grid.Row="1"/>
        <Label x:Name="label5" Content="City" HorizontalAlignment="Left" Margin="371,145,0,0" VerticalAlignment="Top" Grid.Row="1" Width="94"/>
        <Button Content="Insert" HorizontalAlignment="Left" Margin="371,175,0,0" VerticalAlignment="Top" Width="219" Height="36" Grid.Row="1" Click="Insert_Click"/>
        <Button Content="Update" HorizontalAlignment="Left" Margin="371,216,0,0" VerticalAlignment="Top" Width="219" Height="36" Grid.Row="1" Click="Update_Click"/>
        <Button Content="Delete" HorizontalAlignment="Left" Margin="371,257,0,0" VerticalAlignment="Top" Width="219" Height="36" Grid.Row="1" Click="Delete_Click"/>
    </Grid>
</Page>
