2024-04-28 18:00:25 +02:00
|
|
|
<Window x:Class="WD7UVN_SzTGUI_2023242.Client.WPF.Windows.GetAllMaintainerTeams"
|
2024-03-26 12:54:51 +01:00
|
|
|
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"
|
2024-04-29 22:57:48 +02:00
|
|
|
xmlns:local="clr-namespace:WD7UVN_SzTGUI_2023242.Client.WPF.ViewModels"
|
2024-03-26 12:54:51 +01:00
|
|
|
mc:Ignorable="d"
|
2024-04-28 18:00:25 +02:00
|
|
|
Title="Maintainer teams" Height="550" Width="350">
|
2024-04-29 22:57:48 +02:00
|
|
|
|
|
|
|
|
<Window.DataContext>
|
|
|
|
|
<local:GetAllMaintainerTeamsViewModel/>
|
|
|
|
|
</Window.DataContext>
|
|
|
|
|
|
2024-03-26 12:54:51 +01:00
|
|
|
<Grid>
|
2024-04-29 22:57:48 +02:00
|
|
|
<Grid.RowDefinitions>
|
2024-05-05 18:14:31 +02:00
|
|
|
<RowDefinition Height="8*" />
|
|
|
|
|
<RowDefinition Height="2*" />
|
2024-04-29 22:57:48 +02:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<ListBox ItemsSource="{Binding MaintainerTeams}" Grid.Row="0" SelectedItem="{Binding SelectedMaintainerTeam}">
|
|
|
|
|
<ListBox.ItemContainerStyle>
|
|
|
|
|
<Style TargetType="ListBoxItem">
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Stretch" />
|
|
|
|
|
<Setter Property="Padding" Value="0" />
|
|
|
|
|
<Setter Property="Margin" Value="0" />
|
|
|
|
|
</Style>
|
|
|
|
|
</ListBox.ItemContainerStyle>
|
2024-03-26 12:54:51 +01:00
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
2024-04-29 22:57:48 +02:00
|
|
|
<Border BorderBrush="Black" BorderThickness="1" Margin="5">
|
|
|
|
|
<StackPanel>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.Resources>
|
|
|
|
|
<Style TargetType="TextBox">
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
|
|
</Style>
|
|
|
|
|
</Grid.Resources>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="2*" />
|
|
|
|
|
<ColumnDefinition Width="8*" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
</Grid.RowDefinitions>
|
2024-03-26 12:54:51 +01:00
|
|
|
|
2024-04-29 22:57:48 +02:00
|
|
|
<Label Grid.Row="0" Grid.Column="0" Content="ID:" />
|
|
|
|
|
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding ID}" IsReadOnly="True" Background="LightGray" />
|
2024-03-26 12:54:51 +01:00
|
|
|
|
2024-04-29 22:57:48 +02:00
|
|
|
<Label Grid.Row="1" Grid.Column="0" Content="Name:" />
|
|
|
|
|
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding NAME}" />
|
2024-03-26 12:54:51 +01:00
|
|
|
|
2024-04-29 22:57:48 +02:00
|
|
|
<Label Grid.Row="2" Grid.Column="0" Content="Email:" />
|
|
|
|
|
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding EMAIL}" />
|
2024-03-26 12:54:51 +01:00
|
|
|
|
2024-04-29 22:57:48 +02:00
|
|
|
<Label Grid.Row="3" Grid.Column="0" Content="Team leader:" />
|
|
|
|
|
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding LEADER_ID}" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</StackPanel>
|
2024-03-26 12:54:51 +01:00
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
|
</ListBox>
|
2024-04-29 22:57:48 +02:00
|
|
|
|
2024-05-05 18:14:31 +02:00
|
|
|
<UniformGrid Rows="3" Grid.Row="1">
|
2024-04-29 22:57:48 +02:00
|
|
|
<Button Content="Edit selected" Command="{Binding UpdateMaintainerTeamCommand}"/>
|
|
|
|
|
<Button Content="Create new" Click="CreateNewMaintainerTeam" />
|
2024-05-05 18:14:31 +02:00
|
|
|
<Button Content="Who works in this team" Command="{Binding GetColleaguesCommand}" />
|
2024-04-29 22:57:48 +02:00
|
|
|
</UniformGrid>
|
2024-03-26 12:54:51 +01:00
|
|
|
</Grid>
|
2024-04-29 22:57:48 +02:00
|
|
|
</Window>
|