-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddProcessesWindow.xaml
More file actions
85 lines (77 loc) · 4.47 KB
/
AddProcessesWindow.xaml
File metadata and controls
85 lines (77 loc) · 4.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<Window x:Class="TaskPilot.AddProcessesWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="TaskPilot - Prozesse hinzufügen"
Height="500" Width="700"
WindowStartupLocation="CenterOwner"
ResizeMode="CanResize"
Icon="/icons/toolicon.ico">
<Grid Background="#F5F5F5">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Header -->
<Border Grid.Row="0" Background="#2196F3" Padding="20">
<StackPanel>
<TextBlock Text="Neue Prozesse hinzufügen" FontSize="18" FontWeight="Bold" Foreground="White"/>
<TextBlock Text="Wählen Sie laufende Prozesse aus, um sie zur Überwachung hinzuzufügen" FontSize="12" Foreground="#E3F2FD" Margin="0,5,0,0"/>
</StackPanel>
</Border>
<!-- Filter -->
<Border Grid.Row="1" Background="White" Padding="20" BorderBrush="#DDDDDD" BorderThickness="0,1,0,1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<TextBlock Text="Prozesse filtern:" FontWeight="SemiBold" Margin="0,0,0,5"/>
<TextBox x:Name="FilterTextBox"
Text="{Binding FilterText, UpdateSourceTrigger=PropertyChanged}"
Padding="10,8"
Background="White"
BorderBrush="#CCCCCC"
BorderThickness="1"
Foreground="#333"
FontSize="12"/>
<TextBlock Text="Tipp: Nutzen Sie * (beliebig viele Zeichen) oder ? (ein Zeichen) für Wildcard-Suche"
FontSize="10" Foreground="#666" Margin="0,5,0,0"/>
</StackPanel>
<StackPanel Grid.Column="1" VerticalAlignment="Bottom" Margin="20,0,0,0" Orientation="Horizontal">
<Button Content="Aktualisieren" Click="Refresh_Click" Padding="15,8" Background="#2196F3" Foreground="White" FontWeight="SemiBold" Margin="0,0,10,0"/>
<Button Content="Alle aktivieren" Click="SelectAll_Click" Padding="15,8" Background="#4CAF50" Foreground="White" FontWeight="SemiBold"/>
</StackPanel>
</Grid>
</Border>
<!-- Prozessliste -->
<DataGrid Grid.Row="2"
x:Name="ProcessesDataGrid"
ItemsSource="{Binding RunningProcesses}"
AutoGenerateColumns="False"
GridLinesVisibility="Horizontal"
HeadersVisibility="Column"
SelectionMode="Single"
CanUserResizeRows="False"
CanUserSortColumns="False"
AlternatingRowBackground="#FAFAFA"
RowHeight="45"
Margin="20">
<DataGrid.Columns>
<DataGridCheckBoxColumn Header="Hinzufügen" Binding="{Binding IsSelected}" Width="80" IsReadOnly="False"/>
<DataGridTextColumn Header="Prozessname" Binding="{Binding ProcessName}" Width="150" IsReadOnly="True"/>
<DataGridTextColumn Header="Anzeigename" Binding="{Binding DisplayName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Width="*" IsReadOnly="False"/>
<DataGridTextColumn Header="Beschreibung" Binding="{Binding Description, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Width="250" IsReadOnly="False"/>
</DataGrid.Columns>
</DataGrid>
<!-- Footer mit Buttons -->
<Border Grid.Row="3" Background="White" Padding="20" BorderBrush="#DDDDDD" BorderThickness="0,1,0,0">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<Button Content="Abbrechen" Click="Cancel_Click" Padding="20,10" Margin="0,0,10,0" Background="#9E9E9E" Foreground="White" FontWeight="SemiBold" Width="120"/>
<Button Content="Hinzufügen" Click="Add_Click" Padding="20,10" Background="#4CAF50" Foreground="White" FontWeight="SemiBold" Width="120"/>
</StackPanel>
</Border>
</Grid>
</Window>