<Window x:Class="Gremlin.GremlinUI.ChooseDB"
        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"
        mc:Ignorable="d"
        Title="Datenbank auswählen" Height="309" Width="600" 
        ResizeMode="NoResize"
        WindowStartupLocation="CenterScreen" 
        SizeToContent="Height" 
        ShowInTaskbar="False">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <Label x:Name="lblChoose" Grid.Row="0"
               Content="Bitte wähle die Datenbank aus." 
               VerticalContentAlignment="Center" 
               HorizontalContentAlignment="Center" 
               FontSize="14" 
               Grid.RowSpan="2" 
               VerticalAlignment="Top" FontWeight="Bold" />
        <Grid Grid.Row="1" Height="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="3*"/>
            </Grid.ColumnDefinitions>
            <StackPanel x:Name="Fields" Grid.Row="1" Grid.Column="0" Orientation="Vertical" >
                <TextBlock x:Name="lblServer" Text="Server" TextWrapping="Wrap" Margin="10,5,10,5" TextAlignment="Right"/>
                <TextBlock x:Name="lblPort" Text="Port" TextWrapping="Wrap" TextAlignment="Right" Margin="10,5,10,5"/>
                <TextBlock x:Name="lblDatabase" TextWrapping="Wrap" TextAlignment="Right" Margin="10,5,10,5"><Run Language="de-de" Text="Database"/><Run Language="de-de"/></TextBlock>
                <TextBlock x:Name="lblUser" TextWrapping="Wrap" TextAlignment="Right" Margin="10,5,10,5"><Run Language="de-de" Text="User"/><Run Language="de-de"/></TextBlock>
                <TextBlock x:Name="lblPassword" Text="Password" TextWrapping="Wrap" TextAlignment="Right" Margin="10,5,10,5"/>
                <TextBlock x:Name="lblSslMode" Text="SSL Mode" TextWrapping="Wrap" TextAlignment="Right" Margin="10,5,10,5"/>
                <TextBlock x:Name="lblSslCa" Text="SSL CA" TextWrapping="Wrap" TextAlignment="Right" Margin="10,5,10,5"/>
            </StackPanel>
            <StackPanel x:Name="Data" Grid.Row="1" Grid.Column="1" Orientation="Vertical" >
                <TextBox x:Name="tbServer" Text="woitschetzki.de" TextWrapping="Wrap" Margin="10,4,10,4"/>
                <TextBox x:Name="tbPort" Text="3308" TextWrapping="Wrap" Margin="10,4,10,4"/>
                <TextBox x:Name="tbDatabase" Text="woitschetzki.de" TextWrapping="Wrap" Margin="10,4,10,4"/>
                <TextBox x:Name="tbUser" Text="sascha" TextWrapping="Wrap" Margin="10,4,10,4"/>
                <PasswordBox x:Name="tbPassword" Margin="10,4,10,4" Password="mgltoJtmmDnKJ86LltsGdw" PasswordChar="*"/>
                <ComboBox x:Name="cbSslMode" Margin="10,4,10,4">
                    <ComboBoxItem>Disabled</ComboBoxItem>
                    <ComboBoxItem>Preferred</ComboBoxItem>
                    <ComboBoxItem>Required</ComboBoxItem>
                    <ComboBoxItem IsSelected="True">VerifyCA</ComboBoxItem>
                    <ComboBoxItem>VerifyIdentity</ComboBoxItem>
                    <ComboBoxItem>FullVerify</ComboBoxItem>
                </ComboBox>
                <TextBox x:Name="tbSslCa" TextWrapping="Wrap" Margin="10,4,10,4" Text="D:\\nextcloud\\Certs\\ca-cert.pem"/>
            </StackPanel>
        </Grid>
        <Grid Grid.Row="4" Height="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <StackPanel x:Name="Save" Grid.Row="1" Grid.Column="2" Orientation="Vertical" >
                <Button x:Name="btnSave" Content="Save and Close" Margin="10,5,10,5" IsDefault="True" Click="BtnSave_Click" FontWeight="Bold"/>
            </StackPanel>
            <StackPanel x:Name="Test" Grid.Row="1" Grid.Column="1" Orientation="Vertical" >
                <Button x:Name="btnTest" Content="Test" Margin="10,5,10,5" Click="BtnTest_Click"/>
            </StackPanel>            
            <StackPanel x:Name="Cancel" Grid.Row="1" Grid.Column="3" Orientation="Vertical" >
                <Button x:Name="btnCancel" Content="Cancel" Margin="10,5,10,5" IsCancel="True" Click="BtnCancel_Click"/>
            </StackPanel>
            <StackPanel x:Name="Choose" Grid.Row="1" Grid.Column="0" Orientation="Vertical" >
                <Button x:Name="butChooseCert" Content="Choose Cert" Margin="10,5,10,5" Click="ButChooseCert_Click"/>
            </StackPanel>
        </Grid>
    </Grid>
</Window>