68 lines
3.4 KiB
Plaintext
68 lines
3.4 KiB
Plaintext
|
|
<Window x:Class="EngineeringSync.TrayApp.Views.PendingChangesWindow"
|
|||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|||
|
|
Title="Ausstehende Änderungen – EngineeringSync"
|
|||
|
|
Height="520" Width="860"
|
|||
|
|
WindowStartupLocation="CenterScreen"
|
|||
|
|
Background="#F5F5F5">
|
|||
|
|
<Grid Margin="12">
|
|||
|
|
<Grid.RowDefinitions>
|
|||
|
|
<RowDefinition Height="Auto" />
|
|||
|
|
<RowDefinition Height="*" />
|
|||
|
|
<RowDefinition Height="Auto" />
|
|||
|
|
<RowDefinition Height="Auto" />
|
|||
|
|
</Grid.RowDefinitions>
|
|||
|
|
|
|||
|
|
<!-- Projekt-Auswahl -->
|
|||
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,0,0,8">
|
|||
|
|
<TextBlock Text="Projekt:" VerticalAlignment="Center" Margin="0,0,8,0" FontWeight="SemiBold"/>
|
|||
|
|
<ComboBox ItemsSource="{Binding Projects}"
|
|||
|
|
SelectedItem="{Binding SelectedProject}"
|
|||
|
|
DisplayMemberPath="Name"
|
|||
|
|
Width="300" />
|
|||
|
|
<Button Content="Aktualisieren" Margin="8,0,0,0" Padding="10,4"
|
|||
|
|
Command="{Binding LoadChangesCommand}" />
|
|||
|
|
</StackPanel>
|
|||
|
|
|
|||
|
|
<!-- Änderungsliste -->
|
|||
|
|
<DataGrid Grid.Row="1"
|
|||
|
|
ItemsSource="{Binding Changes}"
|
|||
|
|
AutoGenerateColumns="False"
|
|||
|
|
CanUserAddRows="False"
|
|||
|
|
CanUserDeleteRows="False"
|
|||
|
|
SelectionMode="Single"
|
|||
|
|
GridLinesVisibility="Horizontal"
|
|||
|
|
Background="White"
|
|||
|
|
BorderBrush="#DDDDDD"
|
|||
|
|
BorderThickness="1">
|
|||
|
|
<DataGrid.Columns>
|
|||
|
|
<DataGridCheckBoxColumn Binding="{Binding IsSelected, UpdateSourceTrigger=PropertyChanged}"
|
|||
|
|
Header="" Width="40" />
|
|||
|
|
<DataGridTextColumn Binding="{Binding FileName}" Header="Datei" Width="200" IsReadOnly="True"/>
|
|||
|
|
<DataGridTextColumn Binding="{Binding RelativePath}" Header="Pfad" Width="*" IsReadOnly="True"/>
|
|||
|
|
<DataGridTextColumn Binding="{Binding ChangeTypeDisplay}" Header="Änderungstyp" Width="120" IsReadOnly="True"/>
|
|||
|
|
<DataGridTextColumn Binding="{Binding CreatedAtDisplay}" Header="Zeitpunkt" Width="160" IsReadOnly="True"/>
|
|||
|
|
</DataGrid.Columns>
|
|||
|
|
</DataGrid>
|
|||
|
|
|
|||
|
|
<!-- Auswahl-Buttons -->
|
|||
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0,8,0,4">
|
|||
|
|
<Button Content="Alle auswählen" Padding="8,4" Margin="0,0,4,0"
|
|||
|
|
Command="{Binding SelectAllCommand}" />
|
|||
|
|
<Button Content="Keine auswählen" Padding="8,4"
|
|||
|
|
Command="{Binding SelectNoneCommand}" />
|
|||
|
|
<TextBlock Text="{Binding StatusMessage}" VerticalAlignment="Center"
|
|||
|
|
Margin="16,0,0,0" Foreground="Gray" />
|
|||
|
|
</StackPanel>
|
|||
|
|
|
|||
|
|
<!-- Aktions-Buttons -->
|
|||
|
|
<StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,4,0,0">
|
|||
|
|
<Button Content="Ausgewählte ignorieren" Padding="10,6" Margin="0,0,8,0"
|
|||
|
|
Command="{Binding IgnoreSelectedCommand}" />
|
|||
|
|
<Button Content="Ausgewählte synchronisieren" Padding="10,6"
|
|||
|
|
Background="#0078D4" Foreground="White" BorderThickness="0"
|
|||
|
|
Command="{Binding SyncSelectedCommand}" />
|
|||
|
|
</StackPanel>
|
|||
|
|
</Grid>
|
|||
|
|
</Window>
|