Demka_kur/OknaFunciy/SotrudnikiWindow.axaml
2025-03-05 12:12:58 +03:00

28 lines
1.4 KiB
XML

<Window xmlns="https://github.com/avaloniaui"
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"
x:Class="Demka_Snova_1.OknaFunciy.SotrudnikiWindow"
xmlns:local="clr-namespace:Demka_Snova_1.Hardik.Conect.Dao"
Title="Управление сотрудниками"
Width="800"
Height="600">
<Grid VerticalAlignment="Top" HorizontalAlignment="Center">
<StackPanel Margin="10">
<DataGrid x:Name="SotrudnikiDataGrid"
AutoGenerateColumns="True"
Margin="0,0,0,10"
SelectionMode="Single"
x:DataType="local:SotrudnikDao" />
<Button x:Name="AddButton" Content="Добавить сотрудника" Click="AddSotrudnik" />
<Button x:Name="DeleteButton" Content="Удалить сотрудника" Click="DeleteSotrudnik" />
<Button x:Name="ChangeRoleButton" Content="Изменить роль" Click="ChangeRole" />
<Button x:Name="ViewActivityButton" Content="Просмотреть активность" Click="ViewActivity" />
<Button x:Name="ExitButton" Content="Выход" Margin="0,10" Click="Exitka" />
</StackPanel>
</Grid>
</Window>