MainWindow.xaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. <Window x:Class="Control_DB_Railway.MainWindow"
  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:Control_DB_Railway"
  7. mc:Ignorable="d"
  8. WindowStartupLocation="CenterScreen"
  9. ResizeMode="NoResize"
  10. Title="Интерфейс для ведения информационной базы 'Железная дорога'"
  11. Height="450"
  12. Width="600">
  13. <Grid>
  14. <!--Вкладки-->
  15. <TabControl Grid.Row="0">
  16. <TabItem Name="StationsTab">
  17. <!--Заголовок вкладки "Станции"-->
  18. <TabItem.Header>
  19. <TextBlock Text="Станции"/>
  20. </TabItem.Header>
  21. <Grid>
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="*"/>
  24. <RowDefinition Height="200"/>
  25. </Grid.RowDefinitions>
  26. <!--Отображение данных "Станции"-->
  27. <ListBox Name="listBox_Station"
  28. BorderBrush="Black"
  29. Background="WhiteSmoke"
  30. SelectionChanged="listBox_Station_SelectionChanged"/>
  31. <!--Кнопки-->
  32. <Button Name="button_AddRecord_Station"
  33. Content="Добавить/Изменить станцию"
  34. HorizontalAlignment="Left"
  35. Margin="350,63,0,0"
  36. Grid.Row="1"
  37. VerticalAlignment="Top"
  38. Width="186"
  39. Click="button_AddRecord_Station_Click"/>
  40. <Button Name="button_DeleteRecord_Station"
  41. Content="Удалить станцию"
  42. HorizontalAlignment="Left"
  43. Margin="388,110,0,0"
  44. Grid.Row="1"
  45. VerticalAlignment="Top"
  46. Width="110"
  47. Click="button_DeleteRecord_Station_Click"/>
  48. <Button x:Name="button_ClearStation"
  49. Content="Очистить "
  50. HorizontalAlignment="Left"
  51. Margin="198,170,0,0"
  52. Grid.Row="1"
  53. VerticalAlignment="Top"
  54. Width="109"
  55. Click="button_ClearStation_Click"/>
  56. <!--Элементы в рамке-->
  57. <TextBlock HorizontalAlignment="Left"
  58. Margin="38,32,0,0"
  59. Grid.Row="1"
  60. TextWrapping="Wrap" Text="Название"
  61. VerticalAlignment="Top"
  62. RenderTransformOrigin="0.485,0.595"/>
  63. <TextBox Name="textBox_Station"
  64. HorizontalAlignment="Left"
  65. Margin="38,54,0,0"
  66. Grid.Row="1"
  67. TextWrapping="Wrap"
  68. Text=""
  69. Background="WhiteSmoke"
  70. VerticalAlignment="Top"
  71. Width="120"/>
  72. <CheckBox Name="checkBox_overheadTransition"
  73. Content="Надземный переход"
  74. HorizontalAlignment="Left"
  75. Margin="39,99,0,0"
  76. Grid.Row="1"
  77. VerticalAlignment="Top"/>
  78. <TextBlock HorizontalAlignment="Left"
  79. Margin="39,133,0,0"
  80. Grid.Row="1"
  81. TextWrapping="Wrap"
  82. Text="Местоположение"
  83. VerticalAlignment="Top"/>
  84. <ComboBox Name="comboBox_StationLocation"
  85. HorizontalAlignment="Left"
  86. Margin="38,155,0,0"
  87. Grid.Row="1"
  88. VerticalAlignment="Top"
  89. Width="120"/>
  90. <Rectangle HorizontalAlignment="Left"
  91. Height="169"
  92. Margin="18,25,0,0"
  93. Grid.Row="1"
  94. Stroke="Black"
  95. VerticalAlignment="Top"
  96. Width="175"/>
  97. </Grid>
  98. </TabItem>
  99. <TabItem Name="TypeStationsTab">
  100. <!--Заголовок вкладки "Тип Станции"-->
  101. <TabItem.Header>
  102. <TextBlock Text="Тип станции"/>
  103. </TabItem.Header>
  104. <Grid>
  105. <Grid.RowDefinitions>
  106. <RowDefinition Height="*"/>
  107. <RowDefinition Height="200"/>
  108. </Grid.RowDefinitions>
  109. <!--Отображение данных "Тип станции"-->
  110. <ListBox Name="listBox_TypeStation"
  111. BorderBrush="Black"
  112. Background="WhiteSmoke" SelectionChanged="listBox_TypeStation_SelectionChanged"/>
  113. <!--Кнопки-->
  114. <Button Name="button_AddRecord_TypeStation"
  115. Content="Добавить/изменить станцию"
  116. HorizontalAlignment="Left"
  117. Margin="336,43,0,0"
  118. Grid.Row="1"
  119. VerticalAlignment="Top"
  120. Width="173" Click="button_AddRecord_TypeStation_Click"/>
  121. <Button Name="button_DeleteRecord_TypeStation"
  122. Content="Удалить станцию"
  123. HorizontalAlignment="Left"
  124. Margin="368,85,0,0"
  125. Grid.Row="1"
  126. VerticalAlignment="Top"
  127. Width="109" Click="button_DeleteRecord_TypeStation_Click"/>
  128. <Button x:Name="button_ClearTypeStation"
  129. Content="Очистить "
  130. HorizontalAlignment="Left"
  131. Margin="64,144,0,0"
  132. Grid.Row="1"
  133. VerticalAlignment="Top"
  134. Width="110" Click="button_ClearTypeStation_Click"/>
  135. <!--Элементы в рамке-->
  136. <TextBlock HorizontalAlignment="Left"
  137. Margin="38,32,0,0"
  138. Grid.Row="1"
  139. TextWrapping="Wrap"
  140. Text="Название"
  141. VerticalAlignment="Top"
  142. RenderTransformOrigin="0.485,0.595"/>
  143. <TextBox Name="textBox_TypeStation"
  144. HorizontalAlignment="Left"
  145. Margin="38,54,0,0"
  146. Grid.Row="1"
  147. TextWrapping="Wrap"
  148. Text=""
  149. Background="WhiteSmoke"
  150. VerticalAlignment="Top"
  151. Width="120"/>
  152. <CheckBox Name="checkBox_passagerService"
  153. Content="Обслуживание пассажиров"
  154. HorizontalAlignment="Left"
  155. Margin="39,0,0,0"
  156. Grid.Row="1"
  157. VerticalAlignment="Center"/>
  158. <Rectangle HorizontalAlignment="Left"
  159. Height="101"
  160. Margin="23,25,0,0"
  161. Grid.Row="1"
  162. Stroke="Black"
  163. VerticalAlignment="Top"
  164. Width="198"/>
  165. </Grid>
  166. </TabItem>
  167. <TabItem Name="RoadsTab">
  168. <!--Заголовок вкладки "Дорога"-->
  169. <TabItem.Header>
  170. <TextBlock Text="Дорога"/>
  171. </TabItem.Header>
  172. <Grid>
  173. <Grid.RowDefinitions>
  174. <RowDefinition Height="*"/>
  175. <RowDefinition Height="200"/>
  176. </Grid.RowDefinitions>
  177. <!--Отображение данных "Дорога"-->
  178. <ListBox Name="listBox_Road"
  179. BorderBrush="Black"
  180. Background="WhiteSmoke"
  181. SelectionChanged="listBox_Road_SelectionChanged"/>
  182. <!--Кнопки-->
  183. <Button Name="button_AddRecord_Road"
  184. Content="Добавить/изменить дорогу"
  185. HorizontalAlignment="Left"
  186. Margin="352,52,0,0"
  187. Grid.Row="1"
  188. VerticalAlignment="Top"
  189. Width="166" Click="button_AddRecord_Road_Click"/>
  190. <Button Name="button_DeleteRecord_Road"
  191. Content="Удалить дорогу"
  192. HorizontalAlignment="Left"
  193. Margin="381,94,0,0"
  194. Grid.Row="1"
  195. VerticalAlignment="Top"
  196. Width="108" Click="button_DeleteRecord_Road_Click"/>
  197. <Button x:Name="button_ClearRoad"
  198. Content="Очистить "
  199. HorizontalAlignment="Left"
  200. Margin="239,143,0,0"
  201. Grid.Row="1"
  202. VerticalAlignment="Top"
  203. Width="110" Click="button_ClearRoad_Click"/>
  204. <!--Элементы в рамке-->
  205. <TextBlock HorizontalAlignment="Left"
  206. Margin="38,32,0,0"
  207. Grid.Row="1"
  208. TextWrapping="Wrap"
  209. Text="Название"
  210. VerticalAlignment="Top"
  211. RenderTransformOrigin="0.485,0.595"/>
  212. <TextBox Name="textBox_NameRoad"
  213. HorizontalAlignment="Left"
  214. Margin="38,49,0,0"
  215. Grid.Row="1"
  216. TextWrapping="Wrap"
  217. Text=""
  218. Background="WhiteSmoke"
  219. VerticalAlignment="Top"
  220. Width="120"/>
  221. <TextBlock HorizontalAlignment="Left"
  222. Margin="38,75,0,0"
  223. Grid.Row="1"
  224. TextWrapping="Wrap"
  225. Text="Тип"
  226. VerticalAlignment="Top"/>
  227. <ComboBox Name="comboBox_TypeRoad"
  228. HorizontalAlignment="Left"
  229. Margin="38,93,0,0"
  230. Grid.Row="1"
  231. VerticalAlignment="Top"
  232. Width="120"/>
  233. <TextBlock HorizontalAlignment="Left"
  234. Margin="38,119,0,0"
  235. Grid.Row="1"
  236. TextWrapping="Wrap"
  237. Text="Категория качества"
  238. VerticalAlignment="Top"/>
  239. <ComboBox x:Name="comboBox_CategoryQuality"
  240. HorizontalAlignment="Left"
  241. Margin="38,136,0,0"
  242. Grid.Row="1"
  243. VerticalAlignment="Top"
  244. Width="120"/>
  245. <Rectangle HorizontalAlignment="Left"
  246. Height="142"
  247. Margin="23,25,0,0"
  248. Grid.Row="1"
  249. Stroke="Black"
  250. VerticalAlignment="Top"
  251. Width="198"/>
  252. </Grid>
  253. </TabItem>
  254. </TabControl>
  255. </Grid>
  256. </Window>