EditAddEntryInSection.xaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <Page x:Class="SportComplex.Program.Pages.EditAddPages.EditAddEntryInSection"
  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-namespace:SportComplex.Program.Pages.EditAddPages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="590" d:DesignWidth="850"
  9. Title="EditAddEntryInSection">
  10. <Grid Background="White">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="40"/>
  13. <RowDefinition/>
  14. </Grid.RowDefinitions>
  15. <Grid Name="gridAddEditEntry"
  16. Grid.Row="1"
  17. Width="450"
  18. Visibility="Visible"
  19. Height="380">
  20. <Grid.RowDefinitions>
  21. <RowDefinition/>
  22. <RowDefinition Height="50"/>
  23. </Grid.RowDefinitions>
  24. <!--Элементы в GroupBox-->
  25. <GroupBox Header="Добавление / Редактирование записи"
  26. FontSize="20"
  27. BorderBrush="Black"
  28. BorderThickness="3">
  29. <Grid Margin="10">
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="150"/>
  32. <ColumnDefinition/>
  33. </Grid.ColumnDefinitions>
  34. <Grid.RowDefinitions>
  35. <RowDefinition/>
  36. <RowDefinition/>
  37. <RowDefinition/>
  38. <RowDefinition/>
  39. </Grid.RowDefinitions>
  40. <!--Секции-->
  41. <TextBlock Text="Секция"
  42. VerticalAlignment="Center"
  43. HorizontalAlignment="Right"/>
  44. <ComboBox Name="SelectIDSectionCbx"
  45. Grid.Column="1"
  46. SelectedItem="{Binding Section}"
  47. Margin="20"/>
  48. <!--ФИ Клиента-->
  49. <TextBlock Grid.Row="1"
  50. Text="Клиент"
  51. VerticalAlignment="Center"
  52. HorizontalAlignment="Right"/>
  53. <ComboBox Name="SelectIDClientCbx"
  54. Grid.Column="1"
  55. Grid.Row="1"
  56. SelectedItem="{Binding Clients}"
  57. Margin="20"/>
  58. <!--ФИ Тренера-->
  59. <TextBlock Grid.Row="2"
  60. Text="Тренер"
  61. VerticalAlignment="Center"
  62. HorizontalAlignment="Right"/>
  63. <ComboBox Name="SelectIDTrainerCbx"
  64. Grid.Column="1"
  65. Grid.Row="2"
  66. SelectedItem="{Binding Trainers}"
  67. Margin="20"/>
  68. <!--Дата регистрации-->
  69. <TextBlock Grid.Row="3"
  70. Text="Дата"
  71. VerticalAlignment="Center"
  72. HorizontalAlignment="Right"/>
  73. <TextBox Name="InputDateRegDpk"
  74. Text="{Binding dateReg}"
  75. Grid.Row="3"
  76. Grid.Column="1"
  77. HorizontalAlignment="Center"
  78. Width="230"
  79. VerticalAlignment="Center"
  80. Background="WhiteSmoke"/>
  81. <!--<DatePickerTextBox Name="InputDateRegDpk"
  82. Grid.Row="3"
  83. Grid.Column="1"
  84. VerticalAlignment="Center"
  85. HorizontalAlignment="Center"
  86. Text="{Binding dateReg}"/>-->
  87. </Grid>
  88. </GroupBox>
  89. <!--Сохранение-->
  90. <Button Name="SaveEntryBtn"
  91. Grid.Row="1"
  92. Content="Сохранить"
  93. FontSize="20"
  94. Margin="10"
  95. HorizontalAlignment="Center"
  96. Width="200"
  97. Click="SaveEntryBtn_Click"/>
  98. </Grid>
  99. <!--Вернуться на страницу -->
  100. <Button Name="BackBtn"
  101. Content="Назад"
  102. FontSize="20"
  103. Margin="5"
  104. Click="BackBtn_Click"/>
  105. </Grid>
  106. </Page>