EditAddTrainers.xaml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <Page x:Class="SportComplex.Program.Pages.EditAddPages.EditAddTrainers"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-names
  7. pace:SportComplex.Program.Pages.EditAddPages"
  8. mc:Ignorable="d"
  9. d:DesignHeight="590" d:DesignWidth="850"
  10. Title="EditAddTrainers">
  11. <Grid Background="White">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="40"/>
  14. <RowDefinition/>
  15. </Grid.RowDefinitions>
  16. <!--#region ТРЕНЕРА-->
  17. <Grid Name="gridAddEditTrainers"
  18. Grid.Row="1"
  19. Width="450"
  20. Visibility="Visible"
  21. Height="380">
  22. <Grid.RowDefinitions>
  23. <RowDefinition/>
  24. <RowDefinition Height="50"/>
  25. </Grid.RowDefinitions>
  26. <!--Элементы в GroupBox-->
  27. <GroupBox Header="Добавление / Редактирование тренера"
  28. FontSize="20"
  29. BorderBrush="Black"
  30. BorderThickness="3">
  31. <Grid Margin="10">
  32. <Grid.ColumnDefinitions>
  33. <ColumnDefinition Width="150"/>
  34. <ColumnDefinition/>
  35. </Grid.ColumnDefinitions>
  36. <Grid.RowDefinitions>
  37. <RowDefinition/>
  38. <RowDefinition/>
  39. <RowDefinition/>
  40. <RowDefinition/>
  41. </Grid.RowDefinitions>
  42. <!--Секции-->
  43. <TextBlock Text="Секция"
  44. VerticalAlignment="Center"
  45. HorizontalAlignment="Right"/>
  46. <ComboBox Name="SelectIDSectionCbx"
  47. Grid.Column="1"
  48. SelectedItem="{Binding Section}"
  49. Margin="20"/>
  50. <!--ФИ тренера-->
  51. <TextBlock Grid.Row="1"
  52. Text="Имя"
  53. VerticalAlignment="Center"
  54. HorizontalAlignment="Right"/>
  55. <TextBox Name="InputFNameTrainerTxb"
  56. Text="{Binding lfname}"
  57. Grid.Row="1"
  58. Grid.Column="1"
  59. Margin="20"
  60. Background="WhiteSmoke"/>
  61. <!--Логин-->
  62. <TextBlock Grid.Row="2"
  63. Text="Логин"
  64. VerticalAlignment="Center"
  65. HorizontalAlignment="Right"/>
  66. <TextBox Name="InputLoginTrainerTxb"
  67. Text="{Binding login}"
  68. Grid.Row="2"
  69. Grid.Column="1"
  70. Margin="20"
  71. Background="WhiteSmoke"/>
  72. <!--Пароль-->
  73. <TextBlock Grid.Row="3"
  74. Text="Пароль"
  75. VerticalAlignment="Center"
  76. HorizontalAlignment="Right"/>
  77. <TextBox Name="InputPassTrainerTxb"
  78. Text="{Binding passwd}"
  79. Grid.Row="3"
  80. Grid.Column="1"
  81. Margin="20"
  82. Background="WhiteSmoke"/>
  83. </Grid>
  84. </GroupBox>
  85. <!--Сохранение-->
  86. <Button Name="SaveTrainerBtn"
  87. Grid.Row="1"
  88. Content="Сохранить"
  89. FontSize="20"
  90. Margin="10"
  91. HorizontalAlignment="Center"
  92. Width="200"
  93. Click="SaveTrainerBtn_Click"/>
  94. </Grid>
  95. <!--#endregion СЕКЦИИ-->
  96. <!--Вернуться на страницу -->
  97. <Button Name="BackBtn"
  98. Content="Назад"
  99. FontSize="20"
  100. Margin="5"
  101. Click="BackBtn_Click"/>
  102. </Grid>
  103. </Page>