AddOrUpdateUser.xaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <Window x:Class="WpfApp1.AddOrUpdateUser"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:WpfApp1"
  7. mc:Ignorable="d"
  8. Title="AddOrUpdateUser" Height="450" Width="800" FontFamily="Comic Sans MS" FontSize="16">
  9. <Grid>
  10. <StackPanel VerticalAlignment="Center">
  11. <TextBlock Text="Добавление сотрудника" HorizontalAlignment="Center" FontWeight="Bold" FontSize="24"/>
  12. <GroupBox Header="Имя" Margin="5">
  13. <TextBox Name="tbName"/>
  14. </GroupBox>
  15. <GroupBox Header="Фамилия" Margin="5">
  16. <TextBox Name="tbSurname"/>
  17. </GroupBox>
  18. <GroupBox Header="Отчество" Margin="5">
  19. <TextBox Name="tbPatronymic"/>
  20. </GroupBox>
  21. <GroupBox Header="Дата рождения" Margin="5">
  22. <TextBox Name="tbBirthday"/>
  23. </GroupBox>
  24. <GroupBox Header="Серия паспорта" Margin="5">
  25. <TextBox Name="tbSerial"/>
  26. </GroupBox>
  27. <GroupBox Header="Номер паспорта" Margin="5">
  28. <TextBox Name="tbNumber"/>
  29. </GroupBox>
  30. <GroupBox Header="Стаж работы" Margin="5">
  31. <TextBox Name="tbWorkExperience"/>
  32. </GroupBox>
  33. <GroupBox Header="Логин" Margin="5">
  34. <TextBox Name="tbLogin"/>
  35. </GroupBox>
  36. <GroupBox Header="Пароль" Margin="5">
  37. <TextBox Name="tbPassword"/>
  38. </GroupBox>
  39. <GroupBox Header="Роль" Margin="5">
  40. <TextBox Name="tbRole"/>
  41. <GroupBox.ToolTip>
  42. Доступные роли: Администратор, Менеджер, Пользователь, Сотрудник ПВЗ
  43. </GroupBox.ToolTip>
  44. </GroupBox>
  45. <Button Name="btnSave" Margin="5" Content="Сохранить" Height="40" Width="200" Click="btnSave_Click"/>
  46. </StackPanel>
  47. </Grid>
  48. </Window>