Files
OfficeFlow/OfficeFlow/Pages/EmployeePages/CreateUserPage.xaml
2025-05-23 19:20:57 +03:00

56 lines
2.5 KiB
XML

<Page x:Class="OfficeFlow.Pages.EmployeePages.CreateUserPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:OfficeFlow.Pages.EmployeePages"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
Title="Создать пользователя">
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Заголовок -->
<TextBlock Text="Создать нового пользователя" FontSize="20" FontWeight="Bold" Margin="0,0,0,20"/>
<!-- Логин -->
<StackPanel Grid.Row="1" Orientation="Vertical" Margin="0,0,0,10">
<TextBlock Text="Логин:" FontSize="16"/>
<TextBox x:Name="TBLLogin" Width="300" Height="30"/>
</StackPanel>
<!-- Пароль -->
<StackPanel Grid.Row="2" Orientation="Vertical" Margin="0,0,0,10">
<TextBlock Text="Пароль:" FontSize="16"/>
<PasswordBox x:Name="PBPassword" Width="300" Height="30"/>
</StackPanel>
<!-- Email -->
<StackPanel Grid.Row="3" Orientation="Vertical" Margin="0,0,0,10">
<TextBlock Text="Email:" FontSize="16"/>
<TextBox x:Name="TBLEmail" Width="300" Height="30"/>
</StackPanel>
<!-- Роль -->
<StackPanel Grid.Row="4" Orientation="Vertical" Margin="0,0,0,10">
<TextBlock Text="Роль:" FontSize="16"/>
<ComboBox x:Name="CBRoles" DisplayMemberPath="RoleName" SelectedValuePath="RoleID" Width="300" Height="30"/>
</StackPanel>
<!-- Кнопки -->
<StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Right">
<Button Content="Отмена" Width="100" Height="30" Margin="0,0,10,0" Click="Cancel_Click" IsCancel="True"/>
<Button Content="Создать" Width="100" Height="30" Click="CreateUser_Click" Style="{StaticResource AccentButtonStyle}"/>
</StackPanel>
</Grid>
</Page>