<local:ContextWindow x:Class="Elwig.Windows.SeasonFinishWindow"
        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:Elwig.Windows"
        xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
        mc:Ignorable="d"
        Loaded="Window_Loaded"
        Title="Leseabschluss - Elwig" Height="450" Width="800">
    <Window.Resources>
        <Style TargetType="Button">
            <Setter Property="VerticalAlignment" Value="Top"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <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>
        <Label Content="Saison:" Margin="50,40,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Padding="2,4,2,4" Height="25"/>
        <xctk:IntegerUpDown Name="SeasonInput" Height="25" Width="56" FontSize="14" Minimum="1000" Maximum="9999"
                            Margin="110,40,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"
                            ValueChanged="SeasonInput_ValueChanged"/>

        <Button x:Name="CalculateBucketsButton" Content="Aufteilung Berechnen"
                Click="CalculateBucketsButton_Click"
                Margin="50,80,0,0"/>
        <CheckBox x:Name="AllowAttrIntoLowerInput" Content="Erlauben Lieferungen auch auf (konfigurierte) &quot;schlechtere&quot; Flächenbindungen aufzuteilen"
                  VerticalAlignment="Top" HorizontalAlignment="Left" Margin="255,68,0,0"/>
        <CheckBox x:Name="AvoidUnderDeliveriesInput" Content="Unterlieferungen durch Abzug bei &quot;besseren&quot; Flächenbindungen vermeiden"
                  VerticalAlignment="Top" HorizontalAlignment="Left" Margin="255,88,0,0"/>
        <CheckBox x:Name="HonorGebundenInput" Margin="255,108,0,0" VerticalAlignment="Top">
            <TextBlock>Bei Lieferungen das Feld <Italic>Gebunden</Italic> berücksichtigen</TextBlock>
        </CheckBox>

        <Button x:Name="DeliveryConfirmationButton" Content="Anlieferungsbestätigungen"
                Click="DeliveryConfirmationButton_Click"
                Margin="50,120,0,0"/>

        <Button x:Name="OverUnderDeliveryButton" Content="Über-/Unterlieferungen"
                Click="OverUnderDeliveryButton_Click"
                Margin="50,160,0,0"/>

        <Button x:Name="AutoBusinessSharesButton" Content="Autom. GA nachzeichnen"
                Click="AutoBusinessSharesButton_Click"
                Margin="50,200,0,0"/>

        <Button x:Name="PaymentButton" Content="Auszahlung"
                Click="PaymentButton_Click"
                Margin="50,240,0,0"/>
    </Grid>
</local:ContextWindow>
