feat: Importkonflikte gesammelt übernehmen
This commit is contained in:
@@ -34,8 +34,14 @@
|
||||
</StackPanel>
|
||||
|
||||
<Grid Grid.Row="1" RowDefinitions="Auto,*" Margin="0,16,0,0">
|
||||
<TextBlock Grid.Row="0" Text="Entscheidungen" FontSize="15" FontWeight="SemiBold"
|
||||
Margin="0,0,0,8" IsVisible="{Binding HasConflicts}"/>
|
||||
<Grid Grid.Row="0" ColumnDefinitions="*,Auto" Margin="0,0,0,8"
|
||||
IsVisible="{Binding HasConflicts}">
|
||||
<TextBlock Grid.Column="0" Text="Entscheidungen" FontSize="15" FontWeight="SemiBold"
|
||||
VerticalAlignment="Center"/>
|
||||
<Button Grid.Column="1" Content="Übernehmen für alle" Click="OnUseExistingForAll"
|
||||
IsVisible="{Binding CanUseExistingForAll}"
|
||||
ToolTip.Tip="Wählt bei allen eindeutigen Treffern den jeweils vorhandenen Schüler aus."/>
|
||||
</Grid>
|
||||
|
||||
<Border Grid.Row="1" IsVisible="{Binding IsReadyWithoutConflicts}"
|
||||
Background="#1422A06B" CornerRadius="6" Padding="14"
|
||||
|
||||
@@ -14,5 +14,11 @@ public partial class StudentImportDialog : Window
|
||||
Close(true);
|
||||
}
|
||||
|
||||
private void OnUseExistingForAll(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
if (DataContext is StudentImportDialogViewModel vm)
|
||||
vm.UseExistingForAll();
|
||||
}
|
||||
|
||||
private void OnCancel(object? sender, RoutedEventArgs e) => Close(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user