-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
120 lines (105 loc) · 7.74 KB
/
MainWindow.xaml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<Window x:Class="Staff_Registry.MainWindow"
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"
xmlns:local="clr-namespace:Staff_Registry"
mc:Ignorable="d"
Title="Stuff Registry" Height="600" Width="1800"
Left="20"
Top="100">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="10"/>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="8*"/>
<ColumnDefinition Width="10"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="10"/>
<RowDefinition Height="12*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="10"/>
</Grid.RowDefinitions>
<Border Grid.Column="1" Grid.Row="1" Background="LightGray" CornerRadius="30" Margin="10" x:Name="InputPanel">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="10"/>
<ColumnDefinition Width="40*"/>
<ColumnDefinition Width="60*"/>
<ColumnDefinition Width="10"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="15"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="15"/>
</Grid.RowDefinitions>
<TextBlock Grid.Column="1" Grid.Row="1" Text="Id:" FontSize="20" TextAlignment="Left" Margin="5"/>
<TextBlock Grid.Column="1" Grid.Row="1" Text="" FontSize="20" TextAlignment="Left" Margin="35 5 0 0" x:Name="TBID"/>
<TextBlock Grid.Column="2" Grid.Row="1" Text="Rating score:" FontSize="20" TextAlignment="Left" Margin="40 5 0 0"/>
<TextBlock Grid.Column="2" Grid.Row="1" Text="" FontSize="20" TextAlignment="Left" Margin="160 5 0 0" x:Name="TBRating"/>
<TextBlock Grid.Column="1" Grid.Row="2" Text="FirstName" FontSize="20" TextAlignment="Left" Margin="5"/>
<TextBox Grid.Column="2" Grid.Row="2" FontSize="15" Margin="10 0 0 0 " Width="200" Height="25" x:Name="TBFirstName"/>
<TextBlock Grid.Column="1" Grid.Row="3" Text="LastName" FontSize="20" TextAlignment="Left" Margin="5"/>
<TextBox Grid.Column="2" Grid.Row="3" FontSize="15" Margin="10 0 0 0 " Width="200" Height="25" x:Name="TBLastName"/>
<TextBlock Grid.Column="1" Grid.Row="4" Text="Gender" FontSize="20" TextAlignment="Left" Margin="5"/>
<ComboBox Grid.Column="2" Grid.Row="4" FontSize="15" Margin="10 0 0 0 " Width="200" Height="30" x:Name="CBGender"/>
<TextBlock Grid.Column="1" Grid.Row="5" Text="Communication" FontSize="20" TextAlignment="Left" Margin="5"/>
<ComboBox Grid.Column="2" Grid.Row="5" FontSize="15" Margin="10 0 0 0 " Width="200" Height="30" x:Name="CBCommunication"/>
<TextBlock Grid.Column="1" Grid.Row="6" Text="Decision making" FontSize="20" TextAlignment="Left" Margin="5"/>
<ComboBox Grid.Column="2" Grid.Row="6" FontSize="15" Margin="10 0 0 0 " Width="200" Height="30" x:Name="CBDecisionMaking"/>
<TextBlock Grid.Column="1" Grid.Row="7" Text="Problem solving" FontSize="20" TextAlignment="Left" Margin="5"/>
<ComboBox Grid.Column="2" Grid.Row="7" FontSize="15" Margin="10 0 0 0 " Width="200" Height="30" x:Name="CBProblemSolving"/>
<TextBlock Grid.Column="1" Grid.Row="8" Text="Listening" FontSize="20" TextAlignment="Left" Margin="5"/>
<ComboBox Grid.Column="2" Grid.Row="8" FontSize="15" Margin="10 0 0 0 " Width="200" Height="30" x:Name="CBListening"/>
<TextBlock Grid.Column="1" Grid.Row="9" Text="Leadership" FontSize="20" TextAlignment="Left" Margin="5"/>
<ComboBox Grid.Column="2" Grid.Row="9" FontSize="15" Margin="10 0 0 0 " Width="200" Height="30" x:Name="CBLeadership"/>
<TextBlock Grid.Column="1" Grid.Row="10" Text="Accuracy" FontSize="20" TextAlignment="Left" Margin="5"/>
<ComboBox Grid.Column="2" Grid.Row="10" FontSize="15" Margin="10 0 0 0 " Width="200" Height="30" x:Name="CBAccuracy"/>
</Grid>
</Border>
<Border Grid.Column="2" Grid.Row="1" Grid.RowSpan="2" Background="LightGray" CornerRadius="30" Margin="10">
<DataGrid x:Name="DG" Margin="20" HorizontalAlignment="Left" AutoGenerateColumns="False" TextBlock.FontSize="15" SelectedCellsChanged="DGSelectedChange">
<DataGrid.Resources>
<Style TargetType="{x:Type DataGridColumnHeader}">
<Setter Property="Background" Value="Gray"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="BorderBrush" Value="LightGray"/>
</Style>
</DataGrid.Resources>
<DataGrid.Columns>
<DataGridTextColumn Header=" Id" Binding="{Binding Path=ID}" IsReadOnly="True" Width="1*"/>
<DataGridTextColumn Header=" Firstname" Binding="{Binding Path=FirstName}" IsReadOnly="True" Width="3*"/>
<DataGridTextColumn Header=" Lastname" Binding="{Binding Path=LastName}" IsReadOnly="True" Width="3*" />
<DataGridTextColumn Header=" Gender" IsReadOnly="True" Binding="{Binding Path=Gender}" Width="3*"/>
<DataGridTextColumn Header=" Communication" IsReadOnly="True" Binding="{Binding Path=Communication}" Width="4*"/>
<DataGridTextColumn Header=" Decision making" IsReadOnly="True" Binding="{Binding Path=Decision_Making}" Width="4*"/>
<DataGridTextColumn Header=" Problem solving" IsReadOnly="True" Binding="{Binding Path=Problem_Solving}" Width="4*"/>
<DataGridTextColumn Header=" Listening" IsReadOnly="True" Binding="{Binding Path=Listening}" Width="4*"/>
<DataGridTextColumn Header=" Leadership" IsReadOnly="True" Binding="{Binding Path=Leadership}" Width="4*"/>
<DataGridTextColumn Header=" Accuracy" IsReadOnly="True" Binding="{Binding Path=Accuracy}" Width="4*"/>
</DataGrid.Columns>
</DataGrid>
</Border>
<Border
Grid.Column="1" Grid.Row="2" Background="LightGray" CornerRadius="20" Margin="10" x:Name="MainPanel">
<StackPanel Orientation="Horizontal">
<Button Height="40" Width="80" Margin="20 0 0 0" Content="New" FontSize="20" Click="NewClick"/>
<Button Height="40" Width="80" Margin="5 0 0 0" Content="Add" FontSize="20" Click="AddClick"/>
<Button Height="40" Width="80" Margin="5 0 0 0" Content="Change" FontSize="20" Click="ChangeClick"/>
<Button Height="40" Width="80" Margin="5 0 0 0" Content="Delete" FontSize="20" Click="DeleteClick"/>
<Button Height="40" Width="80" Margin="5 0 0 0" Content="Search" FontSize="20" Click="SearchClick"/>
</StackPanel>
</Border>
</Grid>
</Window>