<Window x:Class="TcpWindows.MainWindow"
        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:local="clr-namespace:TcpWindows"
        mc:Ignorable="d"
        Title="MainWindow" Height="600" Width="400"
        Closed="Window_Closed">
    <DockPanel>
        <TextBlock Name="tbLokalneAdresyIp" Text="Lokalne adresy IP:" Margin="10,10,10,0" DockPanel.Dock="Top" />
        <Grid DockPanel.Dock="Top">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <StackPanel Orientation="Vertical" Grid.Column="0">
                <TextBlock Text="Adres IP:" Margin="10,20,10,0" />
        <TextBox Name="tbAdres" Text="127.0.0.1" Margin="10,5,10,0" Height="30" FontSize="20" />
            </StackPanel>
            <StackPanel Orientation="Vertical" Grid.Column="1">
                <TextBlock Text="Port:" Margin="10,20,10,0" />
                <TextBox Name="tbPort" Text="11236" Margin="10,5,10,0" Height="30" FontSize="20" />
            </StackPanel>
        </Grid>
        <Grid DockPanel.Dock="Top">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Button Content="Połącz" Grid.Column="0" Margin="10,10,10,0" Height="40" FontSize="20" Click="btnPolacz_Click" />
            <Button Content="Rozłącz" Grid.Column="1" Margin="10,10,10,0" Height="40" FontSize="20" Click="btnRozlacz_Click" />
        </Grid>
        <TextBlock Name="tbStan" Text="---" Margin="10,10,10,0" Height="30" FontSize="20" DockPanel.Dock="Top" />
        <TextBlock Text="Tekst:" Margin="10,20,10,0" DockPanel.Dock="Top" />
        <TextBox Name="tbTekst" Text="Przykładowa wiadomość" Margin="10,5,10,0" Height="30" FontSize="20" DockPanel.Dock="Top" />
        <Button Content="Wyślij" Margin="10,10,10,0" Height="40" FontSize="20" DockPanel.Dock="Top" Click="btnWyslij_Click" />
        <TextBlock Text="Odebrane komunikaty:" Margin="10,20,10,0" DockPanel.Dock="Top" />
        <ListBox Name="lbOdebraneKomunikaty" Margin="10,5,10,10" />
    </DockPanel>
</Window>
