[#10] MemberAdminWindow: Implement MVVM
This commit is contained in:
		| @@ -4,8 +4,12 @@ | ||||
|         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||||
|         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||||
|         xmlns:local="clr-namespace:Elwig.Windows" | ||||
|         xmlns:vm="clr-namespace:Elwig.ViewModels" | ||||
|         Title="Mitglieder - Elwig" Height="700" Width="1250" MinHeight="650" MinWidth="1150" | ||||
|         Loaded="Window_Loaded"> | ||||
|     <Window.DataContext> | ||||
|         <vm:MemberAdminViewModel/> | ||||
|     </Window.DataContext> | ||||
|     <Window.Resources> | ||||
|         <Style TargetType="Label"> | ||||
|             <Setter Property="HorizontalAlignment" Value="Left"/> | ||||
| @@ -47,19 +51,19 @@ | ||||
|  | ||||
|         <Menu Grid.ColumnSpan="3" BorderThickness="0,0,0,1" BorderBrush="LightGray" Background="White"> | ||||
|             <MenuItem Header="Kontaktieren"> | ||||
|                 <MenuItem x:Name="Menu_Contact_Email" Header="E-Mail senden..." IsEnabled="False" | ||||
|                 <MenuItem x:Name="Menu_Contact_Email" Header="E-Mail senden..." IsEnabled="{Binding MemberHasEmail}" | ||||
|                           Click="Menu_Contact_Email_Click"/> | ||||
|                 <MenuItem x:Name="Menu_Contact_Letterhead" Header="Briefkopf drucken" IsEnabled="False" | ||||
|                 <MenuItem x:Name="Menu_Contact_Letterhead" Header="Briefkopf drucken" IsEnabled="{Binding IsMemberSelected}" | ||||
|                           Click="Menu_Contact_Letterhead_Click"/> | ||||
|             </MenuItem> | ||||
|             <MenuItem Header="Stammdatenblatt"> | ||||
|                 <MenuItem x:Name="Menu_MemberDataSheet_Show" Header="...anzeigen (PDF)" IsEnabled="False" | ||||
|                 <MenuItem x:Name="Menu_MemberDataSheet_Show" Header="...anzeigen (PDF)" IsEnabled="{Binding IsMemberSelected}" | ||||
|                           Click="Menu_MemberDataSheet_Show_Click" InputGestureText="Strg+P"/> | ||||
|                 <MenuItem x:Name="Menu_MemberDataSheet_SavePdf" Header="...speichern... (PDF)" IsEnabled="False" | ||||
|                 <MenuItem x:Name="Menu_MemberDataSheet_SavePdf" Header="...speichern... (PDF)" IsEnabled="{Binding IsMemberSelected}" | ||||
|                           Click="Menu_MemberDataSheet_SavePdf_Click"/> | ||||
|                 <MenuItem x:Name="Menu_MemberDataSheet_Print" Header="...drucken" IsEnabled="False" | ||||
|                 <MenuItem x:Name="Menu_MemberDataSheet_Print" Header="...drucken" IsEnabled="{Binding IsMemberSelected}" | ||||
|                           Click="Menu_MemberDataSheet_Print_Click" InputGestureText="Strg+Shift+P"/> | ||||
|                 <MenuItem x:Name="Menu_MemberDataSheet_Email" Header="...per E-Mail schicken" IsEnabled="False" | ||||
|                 <MenuItem x:Name="Menu_MemberDataSheet_Email" Header="...per E-Mail schicken" IsEnabled="{Binding MemberCanSendEmail}" | ||||
|                           Click="Menu_MemberDataSheet_Email_Click"/> | ||||
|             </MenuItem> | ||||
|             <MenuItem Header="Anlieferungsbestätigung" x:Name="Menu_DeliveryConfirmation"> | ||||
| @@ -110,18 +114,21 @@ | ||||
|                 <MenuItem x:Name="Menu_List_PrintAll" Header="...mit allen drucken" | ||||
|                           Click="Menu_List_PrintAll_Click"/> | ||||
|                 <Separator/> | ||||
|                 <MenuItem x:Name="Menu_List_OrderMgNr" Header="...nach MgNr. sortieren" IsCheckable="True" IsChecked="True" | ||||
|                 <MenuItem x:Name="Menu_List_OrderMgNr" Header="...nach MgNr. sortieren" | ||||
|                           IsCheckable="True" IsChecked="{Binding MemberListOrderByMgNr, Mode=TwoWay}" | ||||
|                           Click="Menu_List_Order_Click"/> | ||||
|                 <MenuItem x:Name="Menu_List_OrderName" Header="...nach Nachname, Vorname sortieren" IsCheckable="True" | ||||
|                 <MenuItem x:Name="Menu_List_OrderName" Header="...nach Nachname, Vorname sortieren" | ||||
|                           IsCheckable="True" IsChecked="{Binding MemberListOrderByName, Mode=TwoWay}" | ||||
|                           Click="Menu_List_Order_Click"/> | ||||
|                 <MenuItem x:Name="Menu_List_OrderOrt" Header="...nach Stamm-KG, Name sortieren" IsCheckable="True" | ||||
|                 <MenuItem x:Name="Menu_List_OrderOrt" Header="...nach Stamm-KG, Name sortieren" | ||||
|                           IsCheckable="True" IsChecked="{Binding MemberListOrderByOrt, Mode=TwoWay}" | ||||
|                           Click="Menu_List_Order_Click"/> | ||||
|             </MenuItem> | ||||
|         </Menu> | ||||
|  | ||||
|         <Grid Grid.Row="1" Margin="5,0,0,0"> | ||||
|             <Grid.RowDefinitions> | ||||
|                 <RowDefinition Height="39"/> | ||||
|                 <RowDefinition Height="35"/> | ||||
|                 <RowDefinition Height="*"/> | ||||
|                 <RowDefinition Height="42"/> | ||||
|             </Grid.RowDefinitions> | ||||
| @@ -131,7 +138,8 @@ | ||||
|                 <ColumnDefinition Width="*"/> | ||||
|             </Grid.ColumnDefinitions> | ||||
|  | ||||
|             <TextBox x:Name="SearchInput" Grid.ColumnSpan="3" Margin="5,7,145,0" IsReadOnly="False" | ||||
|             <TextBox x:Name="SearchInput" Text="{Binding SearchQuery, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsEnabled="{Binding EnableSearchInputs}" | ||||
|                      Grid.ColumnSpan="3" Margin="5,5,140,0" | ||||
|                      TextChanged="SearchInput_TextChanged"> | ||||
|                 <TextBox.ToolTip> | ||||
|                     <TextBlock> | ||||
| @@ -157,9 +165,11 @@ | ||||
|                 </TextBox.ToolTip> | ||||
|             </TextBox> | ||||
|             <CheckBox x:Name="ActiveMemberInput" Content="Nur aktive anzeigen" | ||||
|                       IsChecked="{Binding ShowOnlyActiveMembers, Mode=TwoWay}" IsEnabled="{Binding EnableSearchInputs}" | ||||
|                       Checked="ActiveMemberInput_Changed" Unchecked="ActiveMemberInput_Changed" | ||||
|                       HorizontalAlignment="Right" Margin="0,12,10,0" VerticalAlignment="Top" Grid.Column="1" Grid.ColumnSpan="2"/> | ||||
|                       HorizontalAlignment="Right" Margin="0,10,10,0" VerticalAlignment="Top" Grid.Column="1" Grid.ColumnSpan="2"/> | ||||
|             <DataGrid x:Name="MemberList" AutoGenerateColumns="False" HeadersVisibility="Column" IsReadOnly="True" GridLinesVisibility="None" SelectionMode="Single" | ||||
|                       ItemsSource="{Binding Members, Mode=TwoWay}" SelectedItem="{Binding SelectedMember, Mode=TwoWay}" | ||||
|                       CanUserDeleteRows="False" CanUserResizeRows="False" CanUserAddRows="False" | ||||
|                       SelectionChanged="MemberList_SelectionChanged" | ||||
|                       Margin="5,0,5,0" Grid.Row="1" FontSize="14" Grid.ColumnSpan="3"> | ||||
| @@ -184,21 +194,21 @@ | ||||
|                 </DataGrid.Columns> | ||||
|             </DataGrid> | ||||
|  | ||||
|             <Button x:Name="NewMemberButton" Content="Neu" | ||||
|             <Button x:Name="NewMemberButton" Content="Neu" Visibility="{Binding ControlButtonsVisibility}" | ||||
|                     HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="5,5,2.5,10" Grid.Column="0" Grid.Row="2" | ||||
|                     Click="NewMemberButton_Click"> | ||||
|                 <Button.ToolTip> | ||||
|                     <TextBlock FontWeight="Bold">Alt+Einfg</TextBlock> | ||||
|                 </Button.ToolTip> | ||||
|             </Button> | ||||
|             <Button x:Name="EditMemberButton" Content="Bearbeiten" IsEnabled="False" | ||||
|             <Button x:Name="EditMemberButton" Content="Bearbeiten" IsEnabled="False" Visibility="{Binding ControlButtonsVisibility}" | ||||
|                     HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="2.5,5,2.5,10" Grid.Column="1" Grid.Row="2" | ||||
|                     Click="EditMemberButton_Click"> | ||||
|                 <Button.ToolTip> | ||||
|                     <TextBlock FontWeight="Bold">Strg+B</TextBlock> | ||||
|                 </Button.ToolTip> | ||||
|             </Button> | ||||
|             <Button x:Name="DeleteMemberButton" Content="Löschen" IsEnabled="False" | ||||
|             <Button x:Name="DeleteMemberButton" Content="Löschen" IsEnabled="False" Visibility="{Binding ControlButtonsVisibility}" | ||||
|                     HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="2.5,5,5,10" Grid.Column="2" Grid.Row="2" | ||||
|                     Click="DeleteMemberButton_Click"> | ||||
|                 <Button.ToolTip> | ||||
| @@ -206,21 +216,21 @@ | ||||
|                 </Button.ToolTip> | ||||
|             </Button> | ||||
|  | ||||
|             <Button x:Name="SaveButton" Content="Speichern" IsEnabled="False" Visibility="Hidden" | ||||
|             <Button x:Name="SaveButton" Content="Speichern" IsEnabled="False" Visibility="{Binding EditingButtonsVisibility}" | ||||
|                     HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="5,5,2.5,10" Grid.Column="0" Grid.Row="2" | ||||
|                     Click="SaveButton_Click"> | ||||
|                 <Button.ToolTip> | ||||
|                     <TextBlock FontWeight="Bold">Strg+S</TextBlock> | ||||
|                 </Button.ToolTip> | ||||
|             </Button> | ||||
|             <Button x:Name="ResetButton" Content="Zurücksetzen" IsEnabled="False" Visibility="Hidden" | ||||
|             <Button x:Name="ResetButton" Content="Zurücksetzen" IsEnabled="False" Visibility="{Binding EditingButtonsVisibility}" | ||||
|                     HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="2.5,5,2.5,10" Grid.Column="1" Grid.Row="2" | ||||
|                     Click="ResetButton_Click"> | ||||
|                 <Button.ToolTip> | ||||
|                     <TextBlock FontWeight="Bold">Strg+Z</TextBlock> | ||||
|                 </Button.ToolTip> | ||||
|             </Button> | ||||
|             <Button x:Name="CancelButton" Content="Abbrechen" IsEnabled="False" Visibility="Hidden" IsCancel="True" | ||||
|             <Button x:Name="CancelButton" Content="Abbrechen" IsEnabled="False" Visibility="{Binding EditingButtonsVisibility}" IsCancel="True" | ||||
|                     HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="2.5,5,5,10" Grid.Column="2" Grid.Row="2" | ||||
|                     Click="CancelButton_Click"> | ||||
|                 <Button.ToolTip> | ||||
| @@ -254,51 +264,62 @@ | ||||
|                     </Grid.ColumnDefinitions> | ||||
|  | ||||
|                     <Label Content="MgNr.:" Margin="10,10,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="MgNrInput" Margin="0,10,0,0" Width="48" Grid.Column="1" TextAlignment="Right" HorizontalAlignment="Left" | ||||
|                     <TextBox x:Name="MgNrInput" Text="{Binding MgNrString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,10,0,0" Width="48" Grid.Column="1" TextAlignment="Right" HorizontalAlignment="Left" | ||||
|                              TextChanged="MgNrInput_TextChanged" LostFocus="MgNrInput_LostFocus"/> | ||||
|  | ||||
|                     <Label Content="Vorg.:" Margin="10,10,0,0" Grid.Column="2"/> | ||||
|                     <TextBox x:Name="PredecessorMgNrInput" Margin="0,10,10,0" Width="48" Grid.Column="3" TextAlignment="Right" HorizontalAlignment="Left" | ||||
|                     <TextBox x:Name="PredecessorMgNrInput" Text="{Binding PredecessorMgNrString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,10,10,0" Width="48" Grid.Column="3" TextAlignment="Right" HorizontalAlignment="Left" | ||||
|                              TextChanged="PredecessorMgNrInput_TextChanged" LostFocus="PredecessorMgNrInput_LostFocus"/> | ||||
|                     <Button x:Name="MemberReferenceButton" Grid.Column="3" Height="25" Width="25" FontFamily="Segoe MDL2 Assets" Content="" Padding="0,0,0,0" | ||||
|                             Margin="53,10,10,10" VerticalAlignment="Top" HorizontalAlignment="Left" IsEnabled="False" ToolTip="Zu Vorgänger springen" | ||||
|                             Margin="53,10,10,10" VerticalAlignment="Top" HorizontalAlignment="Left" IsEnabled="{Binding EnableMemberReferenceButton}" ToolTip="Zu Vorgänger springen" | ||||
|                             Click="MemberReferenceButton_Click"/> | ||||
|  | ||||
|                     <Label Content="Präfix:" Margin="10,40,0,0" Grid.Column="2"/> | ||||
|                     <TextBox x:Name="PrefixInput" Margin="0,40,10,0" Grid.Column="3" | ||||
|                     <TextBox x:Name="PrefixInput" Text="{Binding Prefix, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,40,10,0" Grid.Column="3" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <Label Content="Vorname:" Margin="10,40,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="GivenNameInput" Margin="0,40,0,0" Grid.Column="1" | ||||
|                     <TextBox x:Name="GivenNameInput" Text="{Binding GivenName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,40,0,0" Grid.Column="1" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <Label Content="Nachname:" Margin="10,70,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="FamilyNameInput" Margin="0,70,0,0" Grid.Column="1" | ||||
|                     <TextBox x:Name="FamilyNameInput" Text="{Binding FamilyName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,70,0,0" Grid.Column="1" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <Label Content="Suffix:" Margin="10,70,0,0" Grid.Column="2"/> | ||||
|                     <TextBox x:Name="SuffixInput" Margin="0,70,10,0" Grid.Column="3" | ||||
|                     <TextBox x:Name="SuffixInput" Text="{Binding Suffix, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,70,10,0" Grid.Column="3" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <Label Content="Geburtstag:" Margin="10,100,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="BirthdayInput" Margin="0,100,0,0" Grid.Column="1" Width="78" TextAlignment="Right" HorizontalAlignment="Left" | ||||
|                     <TextBox x:Name="BirthdayInput" Text="{Binding Birthday, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,100,0,0" Grid.Column="1" Width="78" TextAlignment="Right" HorizontalAlignment="Left" | ||||
|                              TextChanged="PartialDateInput_TextChanged" LostFocus="PartialDateInput_LostFocus"/> | ||||
|  | ||||
|                     <Label Content="Alter:" Margin="85,100,0,0" Grid.Column="1" Grid.ColumnSpan="3"/> | ||||
|                     <TextBlock x:Name="Age" Text="-" Margin="119,104,0,0" Grid.Column="1" Grid.ColumnSpan="3" TextWrapping="NoWrap" VerticalAlignment="Top"/> | ||||
|                     <TextBlock x:Name="Age" Text="{Binding Age, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                                Margin="119,104,0,0" Grid.Column="1" Grid.ColumnSpan="3" TextWrapping="NoWrap" VerticalAlignment="Top"/> | ||||
|  | ||||
|                     <CheckBox x:Name="DeceasedInput" Content="Verstorben" IsEnabled="False" | ||||
|                     <CheckBox x:Name="DeceasedInput" Content="Verstorben" IsChecked="{Binding IsDeceased, Mode=TwoWay}" | ||||
|                               Checked="CheckBox_Changed" Unchecked="CheckBox_Changed" | ||||
|                               Grid.Column="3" HorizontalAlignment="Left" Margin="0,105,0,0" VerticalAlignment="Top" IsChecked="False"/> | ||||
|                               Grid.Column="3" HorizontalAlignment="Left" Margin="0,105,0,0" VerticalAlignment="Top"/> | ||||
|  | ||||
|                     <Label Content="Adresse:" Margin="10,130,0,0"/> | ||||
|                     <TextBox x:Name="AddressInput" Margin="0,130,10,0" Grid.Column="1" Grid.ColumnSpan="3" | ||||
|                     <TextBox x:Name="AddressInput" Text="{Binding Address, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,130,10,0" Grid.Column="1" Grid.ColumnSpan="3" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <Label Content="PLZ/Ort:" Margin="10,160,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="PlzInput" Margin="0,160,0,0" Width="42" Grid.Column="1" HorizontalAlignment="Left" | ||||
|                     <TextBox x:Name="PlzInput" Margin="0,160,0,0" Text="{Binding PlzString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Width="42" Grid.Column="1" HorizontalAlignment="Left" | ||||
|                              TextChanged="PlzInput_TextChanged" LostFocus="PlzInput_LostFocus" Tag="PLZ"/> | ||||
|                     <ComboBox x:Name="OrtInput" ItemTemplate="{StaticResource PostalDestTemplate}" TextSearch.TextPath="Ort.Name" | ||||
|                     <ComboBox x:Name="OrtInput" SelectedItem="{Binding Ort, Mode=TwoWay}" ItemsSource="{Binding OrtSource, Mode=TwoWay}" | ||||
|                               ItemTemplate="{StaticResource PostalDestTemplate}" TextSearch.TextPath="Ort.Name" | ||||
|                               Margin="47,160,10,0" Grid.Column="1" Grid.ColumnSpan="3"/> | ||||
|                 </Grid> | ||||
|             </GroupBox> | ||||
| @@ -311,93 +332,138 @@ | ||||
|                     </Grid.ColumnDefinitions> | ||||
|  | ||||
|                     <Label x:Name="EmailAddress1Label" Content="E-Mail-Adresse:" Margin="10,10,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="EmailAddress1Input" Margin="0,10,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                     <TextBox x:Name="EmailAddress1Input" Text="{Binding EmailAddresses[0], Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,10,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                              TextChanged="EmailAddressInput_TextChanged" LostFocus="EmailAddressInput_LostFocus"/> | ||||
|  | ||||
|                     <Label x:Name="EmailAddress2Label" Content="E-Mail-Adresse:" Margin="10,40,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="EmailAddress2Input" Margin="0,40,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                     <TextBox x:Name="EmailAddress2Input" Text="{Binding EmailAddresses[1], Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,40,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                              TextChanged="EmailAddressInput_TextChanged" LostFocus="EmailAddressInput_LostFocus"/> | ||||
|  | ||||
|                     <Label x:Name="EmailAddress3Label" Content="E-Mail-Adresse:" Margin="10,70,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="EmailAddress3Input" Margin="0,70,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                     <TextBox x:Name="EmailAddress3Input" Text="{Binding EmailAddresses[2], Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,70,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                              TextChanged="EmailAddressInput_TextChanged" LostFocus="EmailAddressInput_LostFocus"/> | ||||
|  | ||||
|                     <Label x:Name="EmailAddress4Label" Content="E-Mail-Adresse:" Margin="10,100,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="EmailAddress4Input" Margin="0,100,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                     <TextBox x:Name="EmailAddress4Input" Text="{Binding EmailAddresses[3], Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,100,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                              TextChanged="EmailAddressInput_TextChanged" LostFocus="EmailAddressInput_LostFocus"/> | ||||
|  | ||||
|                     <Label x:Name="EmailAddress5Label" Content="E-Mail-Adresse:" Margin="10,130,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="EmailAddress5Input" Margin="0,130,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                     <TextBox x:Name="EmailAddress5Input" Text="{Binding EmailAddresses[4], Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,130,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                              TextChanged="EmailAddressInput_TextChanged" LostFocus="EmailAddressInput_LostFocus"/> | ||||
|  | ||||
|                     <Label x:Name="EmailAddress6Label" Content="E-Mail-Adresse:" Margin="10,160,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="EmailAddress6Input" Margin="0,160,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                     <TextBox x:Name="EmailAddress6Input" Text="{Binding EmailAddresses[5], Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,160,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                              TextChanged="EmailAddressInput_TextChanged" LostFocus="EmailAddressInput_LostFocus"/> | ||||
|  | ||||
|                     <Label x:Name="EmailAddress7Label" Content="E-Mail-Adresse:" Margin="10,190,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="EmailAddress7Input" Margin="0,190,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                     <TextBox x:Name="EmailAddress7Input" Text="{Binding EmailAddresses[6], Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,190,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                              TextChanged="EmailAddressInput_TextChanged" LostFocus="EmailAddressInput_LostFocus"/> | ||||
|  | ||||
|                     <Label x:Name="EmailAddress8Label" Content="E-Mail-Adresse:" Margin="10,220,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="EmailAddress8Input" Margin="0,220,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                     <TextBox x:Name="EmailAddress8Input" Text="{Binding EmailAddresses[7], Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,220,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                              TextChanged="EmailAddressInput_TextChanged" LostFocus="EmailAddressInput_LostFocus"/> | ||||
|  | ||||
|                     <Label x:Name="EmailAddress9Label" Content="E-Mail-Adresse:" Margin="10,250,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="EmailAddress9Input" Margin="0,250,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                     <TextBox x:Name="EmailAddress9Input" Text="{Binding EmailAddresses[8], Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,250,10,0" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                              TextChanged="EmailAddressInput_TextChanged" LostFocus="EmailAddressInput_LostFocus"/> | ||||
|  | ||||
|                     <ComboBox x:Name="PhoneNr1TypeInput" DisplayMemberPath="Value" Margin="6,70,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr1Input" Margin="0,70,5,0" Grid.Column="1" | ||||
|                     <ComboBox x:Name="PhoneNr1TypeInput" DisplayMemberPath="Value" | ||||
|                               SelectedIndex="{Binding PhoneNrs[0].Type, Mode=TwoWay}" ItemsSource="{Binding PhoneNrTypes}" | ||||
|                               Margin="6,70,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr1Input" Text="{Binding PhoneNrs[0].Number, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,70,5,0" Grid.Column="1" | ||||
|                              TextChanged="PhoneNrInput_TextChanged" LostFocus="PhoneNrInput_LostFocus"/> | ||||
|                     <TextBox x:Name="PhoneNr1CommentInput" Margin="0,70,10,0" Grid.Column="2" | ||||
|                     <TextBox x:Name="PhoneNr1CommentInput" Text="{Binding PhoneNrs[0].Comment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,70,10,0" Grid.Column="2" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <ComboBox x:Name="PhoneNr2TypeInput" DisplayMemberPath="Value" Margin="6,100,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr2Input" Margin="0,100,5,0" Grid.Column="1" | ||||
|                     <ComboBox x:Name="PhoneNr2TypeInput" DisplayMemberPath="Value" | ||||
|                               SelectedIndex="{Binding PhoneNrs[1].Type, Mode=TwoWay}" ItemsSource="{Binding PhoneNrTypes}" | ||||
|                               Margin="6,100,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr2Input" Text="{Binding PhoneNrs[1].Number, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,100,5,0" Grid.Column="1" | ||||
|                              TextChanged="PhoneNrInput_TextChanged" LostFocus="PhoneNrInput_LostFocus"/> | ||||
|                     <TextBox x:Name="PhoneNr2CommentInput" Margin="0,100,10,0" Grid.Column="2" | ||||
|                     <TextBox x:Name="PhoneNr2CommentInput" Text="{Binding PhoneNrs[1].Comment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,100,10,0" Grid.Column="2" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <ComboBox x:Name="PhoneNr3TypeInput" DisplayMemberPath="Value" Margin="6,130,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr3Input" Margin="0,130,5,0" Grid.Column="1" | ||||
|                     <ComboBox x:Name="PhoneNr3TypeInput" DisplayMemberPath="Value" | ||||
|                               SelectedIndex="{Binding PhoneNrs[2].Type, Mode=TwoWay}" ItemsSource="{Binding PhoneNrTypes}" | ||||
|                               Margin="6,130,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr3Input" Text="{Binding PhoneNrs[2].Number, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,130,5,0" Grid.Column="1" | ||||
|                              TextChanged="PhoneNrInput_TextChanged" LostFocus="PhoneNrInput_LostFocus"/> | ||||
|                     <TextBox x:Name="PhoneNr3CommentInput" Margin="0,130,10,0" Grid.Column="2" | ||||
|                     <TextBox x:Name="PhoneNr3CommentInput" Text="{Binding PhoneNrs[2].Comment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,130,10,0" Grid.Column="2" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <ComboBox x:Name="PhoneNr4TypeInput" DisplayMemberPath="Value" Margin="6,160,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr4Input" Margin="0,160,5,0" Grid.Column="1" | ||||
|                     <ComboBox x:Name="PhoneNr4TypeInput" DisplayMemberPath="Value" | ||||
|                               SelectedIndex="{Binding PhoneNrs[3].Type, Mode=TwoWay}" ItemsSource="{Binding PhoneNrTypes}" | ||||
|                               Margin="6,160,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr4Input" Text="{Binding PhoneNrs[3].Number, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,160,5,0" Grid.Column="1" | ||||
|                              TextChanged="PhoneNrInput_TextChanged" LostFocus="PhoneNrInput_LostFocus"/> | ||||
|                     <TextBox x:Name="PhoneNr4CommentInput" Margin="0,160,10,0" Grid.Column="2" | ||||
|                     <TextBox x:Name="PhoneNr4CommentInput" Text="{Binding PhoneNrs[3].Comment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,160,10,0" Grid.Column="2" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <ComboBox x:Name="PhoneNr5TypeInput" DisplayMemberPath="Value" Margin="6,190,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr5Input" Margin="0,190,5,0" Grid.Column="1" | ||||
|                     <ComboBox x:Name="PhoneNr5TypeInput" DisplayMemberPath="Value" | ||||
|                               SelectedIndex="{Binding PhoneNrs[4].Type, Mode=TwoWay}" ItemsSource="{Binding PhoneNrTypes}" | ||||
|                               Margin="6,190,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr5Input" Text="{Binding PhoneNrs[4].Number, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,190,5,0" Grid.Column="1" | ||||
|                              TextChanged="PhoneNrInput_TextChanged" LostFocus="PhoneNrInput_LostFocus"/> | ||||
|                     <TextBox x:Name="PhoneNr5CommentInput" Margin="0,190,10,0" Grid.Column="2" | ||||
|                     <TextBox x:Name="PhoneNr5CommentInput" Text="{Binding PhoneNrs[4].Comment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,190,10,0" Grid.Column="2" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <ComboBox x:Name="PhoneNr6TypeInput" DisplayMemberPath="Value" Margin="6,220,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr6Input" Margin="0,220,5,0" Grid.Column="1" | ||||
|                     <ComboBox x:Name="PhoneNr6TypeInput" DisplayMemberPath="Value" | ||||
|                               SelectedIndex="{Binding PhoneNrs[5].Type, Mode=TwoWay}" ItemsSource="{Binding PhoneNrTypes}" | ||||
|                               Margin="6,220,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr6Input" Text="{Binding PhoneNrs[5].Number, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,220,5,0" Grid.Column="1" | ||||
|                              TextChanged="PhoneNrInput_TextChanged" LostFocus="PhoneNrInput_LostFocus"/> | ||||
|                     <TextBox x:Name="PhoneNr6CommentInput" Margin="0,220,10,0" Grid.Column="2" | ||||
|                     <TextBox x:Name="PhoneNr6CommentInput" Text="{Binding PhoneNrs[5].Comment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,220,10,0" Grid.Column="2" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <ComboBox x:Name="PhoneNr7TypeInput" DisplayMemberPath="Value" Margin="6,250,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr7Input" Margin="0,250,5,0" Grid.Column="1" | ||||
|                     <ComboBox x:Name="PhoneNr7TypeInput" DisplayMemberPath="Value" | ||||
|                               SelectedIndex="{Binding PhoneNrs[6].Type, Mode=TwoWay}" ItemsSource="{Binding PhoneNrTypes}" | ||||
|                               Margin="6,250,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr7Input" Text="{Binding PhoneNrs[6].Number, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,250,5,0" Grid.Column="1" | ||||
|                              TextChanged="PhoneNrInput_TextChanged" LostFocus="PhoneNrInput_LostFocus"/> | ||||
|                     <TextBox x:Name="PhoneNr7CommentInput" Margin="0,250,10,0" Grid.Column="2" | ||||
|                     <TextBox x:Name="PhoneNr7CommentInput" Text="{Binding PhoneNrs[6].Comment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,250,10,0" Grid.Column="2" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <ComboBox x:Name="PhoneNr8TypeInput" DisplayMemberPath="Value" Margin="6,280,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr8Input" Margin="0,280,5,0" Grid.Column="1" | ||||
|                     <ComboBox x:Name="PhoneNr8TypeInput" DisplayMemberPath="Value" | ||||
|                               SelectedIndex="{Binding PhoneNrs[7].Type, Mode=TwoWay}" ItemsSource="{Binding PhoneNrTypes}" | ||||
|                               Margin="6,280,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr8Input" Text="{Binding PhoneNrs[7].Number, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,280,5,0" Grid.Column="1" | ||||
|                              TextChanged="PhoneNrInput_TextChanged" LostFocus="PhoneNrInput_LostFocus"/> | ||||
|                     <TextBox x:Name="PhoneNr8CommentInput" Margin="0,280,10,0" Grid.Column="2" | ||||
|                     <TextBox x:Name="PhoneNr8CommentInput" Text="{Binding PhoneNrs[7].Comment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,280,10,0" Grid.Column="2" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <ComboBox x:Name="PhoneNr9TypeInput" DisplayMemberPath="Value" Margin="6,310,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr9Input" Margin="0,310,5,0" Grid.Column="1" | ||||
|                     <ComboBox x:Name="PhoneNr9TypeInput" DisplayMemberPath="Value" | ||||
|                               SelectedIndex="{Binding PhoneNrs[8].Type, Mode=TwoWay}" ItemsSource="{Binding PhoneNrTypes}" | ||||
|                               Margin="6,310,5,0" FontSize="12" Padding="6,4,4,4"/> | ||||
|                     <TextBox x:Name="PhoneNr9Input" Text="{Binding PhoneNrs[8].Number, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,310,5,0" Grid.Column="1" | ||||
|                              TextChanged="PhoneNrInput_TextChanged" LostFocus="PhoneNrInput_LostFocus"/> | ||||
|                     <TextBox x:Name="PhoneNr9CommentInput" Margin="0,280,10,0" Grid.Column="2" | ||||
|                     <TextBox x:Name="PhoneNr9CommentInput" Text="{Binding PhoneNrs[8].Comment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,280,10,0" Grid.Column="2" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|                 </Grid> | ||||
|             </GroupBox> | ||||
| @@ -409,11 +475,13 @@ | ||||
|                     </Grid.ColumnDefinitions> | ||||
|  | ||||
|                     <Label Content="IBAN:" Margin="10,10,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="IbanInput" Margin="0,10,10,0" Grid.Column="1" Width="290" HorizontalAlignment="Left" | ||||
|                     <TextBox x:Name="IbanInput" Text="{Binding Iban, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,10,10,0" Grid.Column="1" Width="290" HorizontalAlignment="Left" | ||||
|                              TextChanged="IbanInput_TextChanged" LostFocus="IbanInput_LostFocus"/> | ||||
|  | ||||
|                     <Label Content="BIC:" Margin="10,40,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="BicInput" Margin="0,40,10,0" Grid.Column="1" Width="150" HorizontalAlignment="Left" | ||||
|                     <TextBox x:Name="BicInput" Text="{Binding Bic, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,40,10,0" Grid.Column="1" Width="150" HorizontalAlignment="Left" | ||||
|                              TextChanged="BicInput_TextChanged" LostFocus="BicInput_LostFocus"/> | ||||
|                 </Grid> | ||||
|             </GroupBox> | ||||
| @@ -426,21 +494,24 @@ | ||||
|                     </Grid.ColumnDefinitions> | ||||
|  | ||||
|                     <Label Content="UID:" Margin="10,10,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="UstIdNrInput" Margin="0,10,10,0" Grid.Column="1" Width="96" HorizontalAlignment="Left" | ||||
|                     <TextBox x:Name="UstIdNrInput" Text="{Binding UstIdNr, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,10,10,0" Grid.Column="1" Width="96" HorizontalAlignment="Left" | ||||
|                              TextChanged="UstIdNrInput_TextChanged" LostFocus="UstIdNrInput_LostFocus"/> | ||||
|  | ||||
|                     <Label Content="Betriebs-Nr.:" Margin="10,40,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="LfbisNrInput" Margin="0,40,10,0" Grid.Column="1" Width="64" HorizontalAlignment="Left" TextAlignment="Right" | ||||
|                     <TextBox x:Name="LfbisNrInput" Text="{Binding LfbisNr, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,40,10,0" Grid.Column="1" Width="64" HorizontalAlignment="Left" TextAlignment="Right" | ||||
|                              TextChanged="LfbisNrInput_TextChanged" LostFocus="LfbisNrInput_LostFocus"/> | ||||
|  | ||||
|                     <CheckBox x:Name="BuchführendInput" Content="Buchführend" IsEnabled="False" | ||||
|                     <CheckBox x:Name="BuchführendInput" Content="Buchführend" IsChecked="{Binding IsBuchführend, Mode=TwoWay}" IsEnabled="False" | ||||
|                               Checked="CheckBox_Changed" Unchecked="CheckBox_Changed" | ||||
|                               Grid.Column="2" HorizontalAlignment="Left" Margin="10,15,0,0" VerticalAlignment="Top" IsChecked="False"/> | ||||
|                               Grid.Column="2" HorizontalAlignment="Left" Margin="10,15,0,0" VerticalAlignment="Top"/> | ||||
|  | ||||
|                     <CheckBox x:Name="OrganicInput" Content="Bio" IsEnabled="False" | ||||
|                     <CheckBox x:Name="OrganicInput" Content="Bio" IsChecked="{Binding IsOrganic, Mode=TwoWay}" IsEnabled="False" | ||||
|                               Checked="CheckBox_Changed" Unchecked="CheckBox_Changed" | ||||
|                               Grid.Column="2" HorizontalAlignment="Left" Margin="10,45,0,0" VerticalAlignment="Top" IsChecked="False"/> | ||||
|                     <Button x:Name="OrganicButton" Content="easy-cert.com" Height="25" FontSize="12" IsEnabled="False" | ||||
|                               Grid.Column="2" HorizontalAlignment="Left" Margin="10,45,0,0" VerticalAlignment="Top"/> | ||||
|                     <Button x:Name="OrganicButton" Content="easy-cert.com" IsEnabled="{Binding IsMemberSelected}" | ||||
|                             Height="25" FontSize="12" | ||||
|                             Click="OrganicButton_Click" | ||||
|                             Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="60,40,0,0"/> | ||||
|                 </Grid> | ||||
| @@ -453,17 +524,21 @@ | ||||
|                     </Grid.ColumnDefinitions> | ||||
|  | ||||
|                     <Label Content="Name:" Margin="10,10,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="BillingNameInput" Margin="0,10,10,10" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                     <TextBox x:Name="BillingNameInput" Text="{Binding BillingName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,10,10,10" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <Label Content="Adresse:" Margin="10,40,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="BillingAddressInput" Margin="0,40,10,0" Grid.Column="1" | ||||
|                     <TextBox x:Name="BillingAddressInput" Text="{Binding BillingAddress, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,40,10,0" Grid.Column="1" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <Label Content="PLZ/Ort:" Margin="10,70,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="BillingPlzInput" Margin="0,70,0,0" Width="42" Grid.Column="1" HorizontalAlignment="Left" | ||||
|                     <TextBox x:Name="BillingPlzInput" Text="{Binding BillingPlzString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,70,0,0" Width="42" Grid.Column="1" HorizontalAlignment="Left" | ||||
|                              TextChanged="PlzInput_TextChanged" LostFocus="PlzInput_LostFocus" Tag="PLZ"/> | ||||
|                     <ComboBox x:Name="BillingOrtInput" ItemTemplate="{StaticResource PostalDestTemplate}" TextSearch.TextPath="Ort.Name" | ||||
|                     <ComboBox x:Name="BillingOrtInput" SelectedItem="{Binding BillingOrt, Mode=TwoWay}" ItemsSource="{Binding BillingOrtSource, Mode=TwoWay}" | ||||
|                               ItemTemplate="{StaticResource PostalDestTemplate}" TextSearch.TextPath="Ort.Name" | ||||
|                               Margin="47,70,10,0" Grid.Column="1"/> | ||||
|                 </Grid> | ||||
|             </GroupBox> | ||||
| @@ -476,60 +551,69 @@ | ||||
|                     </Grid.ColumnDefinitions> | ||||
|  | ||||
|                     <Label Content="Eintritt:" Margin="10,10,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="EntryDateInput" Margin="0,10,10,0" Width="78" Grid.Column="1" HorizontalAlignment="Left" TextAlignment="Right" | ||||
|                     <TextBox x:Name="EntryDateInput" Text="{Binding EntryDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,10,10,0" Width="78" Grid.Column="1" HorizontalAlignment="Left" TextAlignment="Right" | ||||
|                              TextChanged="DateInput_TextChanged" LostFocus="DateInput_LostFocus"/> | ||||
|  | ||||
|                     <Label Content="Austritt:" Margin="10,40,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="ExitDateInput" Margin="0,40,10,0" Width="78" Grid.Column="1" HorizontalAlignment="Left" TextAlignment="Right" | ||||
|                     <TextBox x:Name="ExitDateInput" Text="{Binding ExitDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,40,10,0" Width="78" Grid.Column="1" HorizontalAlignment="Left" TextAlignment="Right" | ||||
|                              TextChanged="DateInput_TextChanged" LostFocus="DateInput_LostFocus"/> | ||||
|  | ||||
|                     <Label Content="Geschäftsanteile:" Margin="10,70,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="BusinessSharesInput" Margin="0,70,10,0" Width="48" Grid.Column="1" HorizontalAlignment="Left" TextAlignment="Right" | ||||
|                     <TextBox x:Name="BusinessSharesInput" Text="{Binding BusinessSharesString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,70,10,0" Width="48" Grid.Column="1" HorizontalAlignment="Left" TextAlignment="Right" | ||||
|                              TextChanged="IntegerInput_TextChanged"/> | ||||
|  | ||||
|                     <Label Content="BH-Konto:" Margin="10,100,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="AccountingNrInput" Margin="0,100,10,0" Grid.Column="1" | ||||
|                     <TextBox x:Name="AccountingNrInput" Text="{Binding AccountingNr, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,100,10,0" Grid.Column="1" | ||||
|                              TextChanged="TextBox_TextChanged"/> | ||||
|  | ||||
|                     <CheckBox x:Name="ActiveInput" Content="Aktiv" IsEnabled="False" | ||||
|                     <CheckBox x:Name="ActiveInput" Content="Aktiv" IsChecked="{Binding IsActive, Mode=TwoWay}" IsEnabled="False" | ||||
|                               Checked="ActiveInput_Changed" Unchecked="ActiveInput_Changed" | ||||
|                               Grid.Column="2" HorizontalAlignment="Left" Margin="10,15,0,0" VerticalAlignment="Top" IsChecked="False"/> | ||||
|                               Grid.Column="2" HorizontalAlignment="Left" Margin="10,15,0,0" VerticalAlignment="Top"/> | ||||
|  | ||||
|                     <CheckBox x:Name="VollLieferantInput" Content="Volllieferant" IsEnabled="False" | ||||
|                     <CheckBox x:Name="VollLieferantInput" Content="Volllieferant" IsChecked="{Binding IsVollLieferant, Mode=TwoWay}" IsEnabled="False" | ||||
|                               Checked="CheckBox_Changed" Unchecked="CheckBox_Changed" | ||||
|                               Grid.Column="2" HorizontalAlignment="Left" Margin="10,45,0,0" VerticalAlignment="Top" IsChecked="False"/> | ||||
|                               Grid.Column="2" HorizontalAlignment="Left" Margin="10,45,0,0" VerticalAlignment="Top"/> | ||||
|  | ||||
|                     <CheckBox x:Name="FunkionärInput" Content="Funktionär" IsEnabled="False" | ||||
|                     <CheckBox x:Name="FunkionärInput" Content="Funktionär" IsChecked="{Binding IsFunktionär, Mode=TwoWay}" IsEnabled="False" | ||||
|                               Checked="CheckBox_Changed" Unchecked="CheckBox_Changed" | ||||
|                               Grid.Column="2" HorizontalAlignment="Left" Margin="10,75,0,0" VerticalAlignment="Top" IsChecked="False"/> | ||||
|                               Grid.Column="2" HorizontalAlignment="Left" Margin="10,75,0,0" VerticalAlignment="Top"/> | ||||
|  | ||||
|                     <Label Content="Stamm-Zwst.:" Margin="10,130,0,0" Grid.Column="0"/> | ||||
|                     <ComboBox x:Name="BranchInput" DisplayMemberPath="Name" TextSearch.TextPath="Name" | ||||
|                     <ComboBox x:Name="BranchInput" SelectedItem="{Binding Branch, Mode=TwoWay}" ItemsSource="{Binding BranchSource, Mode=TwoWay}" | ||||
|                               DisplayMemberPath="Name" TextSearch.TextPath="Name" | ||||
|                               Margin="0,130,10,0" Grid.Column="1" Grid.ColumnSpan="2"/> | ||||
|  | ||||
|                     <Label Content="Stammgemeinde:" Margin="10,160,0,0" Grid.Column="0"/> | ||||
|                     <ComboBox x:Name="DefaultKgInput" DisplayMemberPath="Name" TextSearch.TextPath="Name" | ||||
|                     <ComboBox x:Name="DefaultKgInput" SelectedItem="{Binding DefaultKg, Mode=TwoWay}" ItemsSource="{Binding DefaultKgSource, Mode=TwoWay}" | ||||
|                               DisplayMemberPath="Name" TextSearch.TextPath="Name" | ||||
|                               Margin="0,160,40,10" Grid.Column="1" Grid.ColumnSpan="2"/> | ||||
|                     <Button x:Name="KgDetailsButton" Content="" FontFamily="Segoe MDL2 Assets" FontSize="14" Padding="0,1,0,0" | ||||
|                             Click="KgDetailsButton_Click" | ||||
|                             Grid.Column="2" VerticalAlignment="Top" HorizontalAlignment="Right" Width="25" Height="25" Margin="10,160,10,10"/> | ||||
|  | ||||
|                     <Label Content="Anmerkung:" Margin="10,190,0,0" Grid.Column="0"/> | ||||
|                     <TextBox x:Name="CommentInput" Margin="0,190,10,70" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                     <TextBox x:Name="CommentInput" Text="{Binding Comment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" | ||||
|                              Margin="0,190,10,70" Grid.Column="1" Grid.ColumnSpan="2" | ||||
|                              TextChanged="TextBox_TextChanged" | ||||
|                              VerticalAlignment="Stretch" Height="auto" AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Visible"/> | ||||
|  | ||||
|                     <Label Content="Kontaktart:" Margin="10,10,0,10" Grid.Column="0" VerticalAlignment="Bottom"/> | ||||
|                     <CheckBox x:Name="ContactPostalInput" Content="Post" IsEnabled="False" | ||||
|                     <CheckBox x:Name="ContactPostalInput" Content="Post" IsChecked="{Binding ContactViaPost, Mode=TwoWay}" IsEnabled="False" | ||||
|                               Checked="CheckBox_Changed" Unchecked="CheckBox_Changed" | ||||
|                               HorizontalAlignment="Left" Margin="0,0,0,15" VerticalAlignment="Bottom" Grid.Column="1" Grid.ColumnSpan="2"/> | ||||
|                     <CheckBox x:Name="ContactEmailInput" Content="E-Mail" IsEnabled="False" | ||||
|                     <CheckBox x:Name="ContactEmailInput" Content="E-Mail" IsChecked="{Binding ContactViaEmail, Mode=TwoWay}" IsEnabled="False" | ||||
|                               Checked="ContactEmailInput_Changed" Unchecked="ContactEmailInput_Changed" | ||||
|                               HorizontalAlignment="Left" Margin="60,0,0,15" VerticalAlignment="Bottom" Grid.Column="1" Grid.ColumnSpan="2"/> | ||||
|  | ||||
|                     <Button x:Name="DeliveryButton" Content="Lieferungen" Click="DeliveryButton_Click" IsEnabled="False" | ||||
|                     <Button x:Name="DeliveryButton" Content="Lieferungen" IsEnabled="{Binding IsMemberSelected}" | ||||
|                             Click="DeliveryButton_Click" | ||||
|                             HorizontalAlignment="Right" Margin="10,00,10,37" Width="150" VerticalAlignment="Bottom" Grid.ColumnSpan="3"/> | ||||
|                     <Button x:Name="AreaCommitmentButton" Content="Flächenbindungen" Click="AreaCommitmentButton_Click" IsEnabled="False" | ||||
|                     <Button x:Name="AreaCommitmentButton" Content="Flächenbindungen" IsEnabled="{Binding IsMemberSelected}" | ||||
|                             Click="AreaCommitmentButton_Click" | ||||
|                             HorizontalAlignment="Right" Margin="10,10,10,5" Width="150" VerticalAlignment="Bottom" Grid.ColumnSpan="3"/> | ||||
|                 </Grid> | ||||
|             </GroupBox> | ||||
| @@ -554,23 +638,23 @@ | ||||
|                 </ItemsPanelTemplate> | ||||
|             </StatusBar.ItemsPanel> | ||||
|             <StatusBarItem> | ||||
|                 <TextBlock Name="StatusMembers" Text="Mitglieder: -"/> | ||||
|                 <TextBlock Name="StatusMembers" Text="{Binding StatusMembers}"/> | ||||
|             </StatusBarItem> | ||||
|             <Separator Grid.Column="1"/> | ||||
|             <StatusBarItem Grid.Column="2"> | ||||
|                 <TextBlock Name="StatusBusinessShares" Text="Geschäftsanteile: -"/> | ||||
|                 <TextBlock Name="StatusBusinessShares" Text="{Binding StatusBusinessShares}"/> | ||||
|             </StatusBarItem> | ||||
|             <Separator Grid.Column="3"/> | ||||
|             <StatusBarItem Grid.Column="4"> | ||||
|                 <TextBlock Name="StatusAreaCommitment" Text="Gebundene Fläche: -"/> | ||||
|                 <TextBlock Name="StatusAreaCommitment" Text="{Binding StatusAreaCommitment}"/> | ||||
|             </StatusBarItem> | ||||
|             <Separator Grid.Column="5"/> | ||||
|             <StatusBarItem Grid.Column="6"> | ||||
|                 <TextBlock Name="StatusDeliveriesLastSeason" Text="Lieferungen (letzte Saison): -"/> | ||||
|                 <TextBlock Name="StatusDeliveriesLastSeason" Text="{Binding StatusDeliveriesLastSeason}"/> | ||||
|             </StatusBarItem> | ||||
|             <Separator Grid.Column="7"/> | ||||
|             <StatusBarItem Grid.Column="8"> | ||||
|                 <TextBlock Name="StatusDeliveriesThisSeason" Text="Lieferungen (aktuelle Saison): -"/> | ||||
|                 <TextBlock Name="StatusDeliveriesThisSeason" Text="{Binding StatusDeliveriesThisSeason}"/> | ||||
|             </StatusBarItem> | ||||
|         </StatusBar> | ||||
|     </Grid> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user