<Window x:Class="TalkDemo.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="{StaticResource ID_TITLE}" Height="390" Width="450" WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize" Background="WhiteSmoke">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="160" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <GroupBox Header="{StaticResource ID_DEV_LOGIN}" Margin="5">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Grid Grid.Row="0" Grid.Column="0">
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
                            <TextBlock Text="{StaticResource ID_IP}" VerticalAlignment="Center"/>
                            <TextBox x:Name="ip_textbox" Width="150" Height="25" Text="171.35.0.134" Margin="5,0,5,0"/>
                        </StackPanel>
                    </Grid>
                    <Grid Grid.Row="0" Grid.Column="1">
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
                            <TextBlock Text="{StaticResource ID_PORT}" VerticalAlignment="Center"/>
                            <TextBox x:Name="port_textbox" Width="150" Height="25" Text="37777" Margin="5,0,5,0" PreviewTextInput="Port_Input"/>
                        </StackPanel>
                    </Grid>
                    <Grid Grid.Row="1" Grid.Column="0">
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
                            <TextBlock Text="{StaticResource ID_USERNAME}" VerticalAlignment="Center"/>
                            <TextBox x:Name="username_textbox" Width="150" Height="25" Text="admin" Margin="5,0,5,0"/>
                        </StackPanel>
                    </Grid>
                    <Grid Grid.Row="1" Grid.Column="1">
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
                            <TextBlock Text="{StaticResource ID_PASSWORD}" VerticalAlignment="Center"/>
                            <PasswordBox x:Name="password_textbox" Width="150" Height="25" Password="admin" Margin="5,0,5,0"/>
                        </StackPanel>
                    </Grid>
                    <Grid Grid.Row="2" Grid.Column="0">
                        <Button x:Name="login_btn" Content="{StaticResource ID_LOGIN}" Width="120" Height="30" Click="Login_Clicked"/>
                    </Grid>
                    <Grid Grid.Row="2" Grid.Column="1">
                        <Button x:Name="logout_btn" Content="{StaticResource ID_LOGOUT}" Width="120" Height="30" Click="Logout_Clicked"/>
                    </Grid>
                </Grid>
            </GroupBox>
        </Grid>
        <Grid Grid.Row="1">
            <GroupBox Header="{StaticResource ID_TALK}" Margin="5">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <Grid Grid.Row="0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="4*"/>
                            <ColumnDefinition Width="6*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*" />
                            <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <Grid Grid.Row="0" Grid.Column="0">
                            <TextBlock Text="{StaticResource ID_MODE}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,5,0"/>
                        </Grid>
                        <Grid Grid.Row="0" Grid.Column="1">
                            <ComboBox x:Name="type_combox" Width="160" Height="25" HorizontalAlignment="Left" SelectionChanged="SelectedType_Changed"/>
                        </Grid>
                        <Grid Grid.Row="1" Grid.Column="0">
                            <TextBlock Text="{StaticResource ID_CHANNEL}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,5,0"/>
                        </Grid>
                        <Grid Grid.Row="1" Grid.Column="1">
                            <ComboBox x:Name="channel_combox" Width="160" Height="25" HorizontalAlignment="Left"/>
                        </Grid>
                    </Grid>
                    <Grid Grid.Row="1">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <Button x:Name="start_btn" Grid.Column="0" Content="{StaticResource ID_START}" Width="120" Height="30" Click="Start_Clicked"/>
                        <Button x:Name="stop_btn" Grid.Column="1" Content="{StaticResource ID_STOP}" Width="120" Height="30" Click="Stop_Clicked"/>
                    </Grid>
                </Grid>
            </GroupBox>
        </Grid>
    </Grid>
</Window>
