<Window x:Class="Elwig.Windows.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Elwig" Height="390" Width="520" ResizeMode="CanMinimize"
        Loaded="Window_Loaded" Closing="Window_Closing">
    <Window.Resources>
        <Style TargetType="Button">
            <Setter Property="VerticalAlignment" Value="Top"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="FontSize" Value="14"/>
            <Setter Property="Padding" Value="9,3"/>
            <Setter Property="Height" Value="32"/>
            <Setter Property="Width" Value="200"/>
        </Style>
    </Window.Resources>
    <Grid>
        <Menu BorderThickness="0,0,0,1" VerticalAlignment="Top" Height="19" BorderBrush="LightGray" Background="White">
            <MenuItem Header="Datenbank">
                <MenuItem Header="Abfragen stellen" Click="Menu_Database_Query_Click"/>
                <!--MenuItem Header="Backup erstellen"/-->
            </MenuItem>
            <MenuItem x:Name="HelpMenu" Header="Hilfe">
                <MenuItem Header="Über"/>
                <MenuItem x:Name="Menu_Help_Update" Header="Nach Updates suchen" Click="Menu_Help_Update_Click"/>
                <MenuItem x:Name="Menu_Help_Smtp" Header="E-Mail-Einstellungen testen" Click="Menu_Help_Smtp_Click"/>
                <MenuItem x:Name="Menu_Help_TestWindow" Header="Test-Fenster" Click="Menu_Help_TestWindow_Click"/>
            </MenuItem>
        </Menu>

        <Grid Height="100" VerticalAlignment="Top" Margin="0,45,0,0" Width="260">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Image Source="\Resources\Images\Elwig.png" RenderOptions.BitmapScalingMode="HighQuality" Grid.Column="0"
                   HorizontalAlignment="Left" Margin="5,5,5,5" VerticalAlignment="Top"/>
            <TextBlock Grid.Column="1" FontSize="32" HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top">
                Elwig
            </TextBlock>
            <TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="0,50,0,0" VerticalAlignment="Top" LineHeight="14" LineStackingStrategy="BlockLineHeight">
                Elektonische Winzer-<LineBreak/>
                genossenschaftsverwaltung
            </TextBlock>
            <TextBlock x:Name="VersionField" Grid.Column="1" FontSize="10" HorizontalAlignment="Left" Margin="0,80,0,0" VerticalAlignment="Top">
                Version: ?
            </TextBlock>
        </Grid>

        <Button x:Name="MemberAdminButton" Content="Mitglieder" Click="MemberAdminButton_Click"
                Margin="0,180,210,0"/>
        <Button x:Name="MailButton" Content="Rundschreiben" Click="MailButton_Click"
                Margin="210,180,0,0"/>
        <Button x:Name="DeliveryAdminButton" Content="Lieferungen" Click="DeliveryAdminButton_Click"
                Margin="0,220,210,0"/>
        <Button x:Name="ReceiptButton" Content="Übernahme" Click="ReceiptButton_Click"
                Margin="210,220,0,0"/>
        <Button x:Name="BaseDataButton" Content="Stammdaten" Click="BaseDataButton_Click"
                Margin="0,260,210,0"/>
        <Button x:Name="SeasonFinishButton" Content="Leseabschluss" Click="SeasonFinishButton_Click"
                Margin="210,260,0,0"/>
    </Grid>
</Window>
