123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308 |
- <Window x:Class="Control_DB_Railway.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:Control_DB_Railway"
- mc:Ignorable="d"
- WindowStartupLocation="CenterScreen"
- ResizeMode="NoResize"
- Title="Интерфейс для ведения информационной базы 'Железная дорога'"
- Height="450"
- Width="600">
- <Grid>
- <!--Вкладки-->
- <TabControl Grid.Row="0">
- <TabItem Name="StationsTab">
- <!--Заголовок вкладки "Станции"-->
- <TabItem.Header>
- <TextBlock Text="Станции"/>
- </TabItem.Header>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="200"/>
- </Grid.RowDefinitions>
- <!--Отображение данных "Станции"-->
- <ListBox Name="listBox_Station"
- BorderBrush="Black"
- Background="WhiteSmoke"
- SelectionChanged="listBox_Station_SelectionChanged"/>
- <!--Кнопки-->
- <Button Name="button_AddRecord_Station"
- Content="Добавить/Изменить станцию"
- HorizontalAlignment="Left"
- Margin="350,63,0,0"
- Grid.Row="1"
- VerticalAlignment="Top"
- Width="186"
- Click="button_AddRecord_Station_Click"/>
- <Button Name="button_DeleteRecord_Station"
- Content="Удалить станцию"
- HorizontalAlignment="Left"
- Margin="388,110,0,0"
- Grid.Row="1"
- VerticalAlignment="Top"
- Width="110"
- Click="button_DeleteRecord_Station_Click"/>
- <Button x:Name="button_ClearStation"
- Content="Очистить "
- HorizontalAlignment="Left"
- Margin="198,170,0,0"
- Grid.Row="1"
- VerticalAlignment="Top"
- Width="109"
- Click="button_ClearStation_Click"/>
- <!--Элементы в рамке-->
- <TextBlock HorizontalAlignment="Left"
- Margin="38,32,0,0"
- Grid.Row="1"
- TextWrapping="Wrap" Text="Название"
- VerticalAlignment="Top"
- RenderTransformOrigin="0.485,0.595"/>
- <TextBox Name="textBox_Station"
- HorizontalAlignment="Left"
- Margin="38,54,0,0"
- Grid.Row="1"
- TextWrapping="Wrap"
- Text=""
- Background="WhiteSmoke"
- VerticalAlignment="Top"
- Width="120"/>
- <CheckBox Name="checkBox_overheadTransition"
- Content="Надземный переход"
- HorizontalAlignment="Left"
- Margin="39,99,0,0"
- Grid.Row="1"
- VerticalAlignment="Top"/>
- <TextBlock HorizontalAlignment="Left"
- Margin="39,133,0,0"
- Grid.Row="1"
- TextWrapping="Wrap"
- Text="Местоположение"
- VerticalAlignment="Top"/>
- <ComboBox Name="comboBox_StationLocation"
- HorizontalAlignment="Left"
- Margin="38,155,0,0"
- Grid.Row="1"
- VerticalAlignment="Top"
- Width="120"/>
- <Rectangle HorizontalAlignment="Left"
- Height="169"
- Margin="18,25,0,0"
- Grid.Row="1"
- Stroke="Black"
- VerticalAlignment="Top"
- Width="175"/>
- </Grid>
- </TabItem>
- <TabItem Name="TypeStationsTab">
- <!--Заголовок вкладки "Тип Станции"-->
- <TabItem.Header>
- <TextBlock Text="Тип станции"/>
- </TabItem.Header>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="200"/>
- </Grid.RowDefinitions>
- <!--Отображение данных "Тип станции"-->
- <ListBox Name="listBox_TypeStation"
- BorderBrush="Black"
- Background="WhiteSmoke" SelectionChanged="listBox_TypeStation_SelectionChanged"/>
- <!--Кнопки-->
- <Button Name="button_AddRecord_TypeStation"
- Content="Добавить/изменить станцию"
- HorizontalAlignment="Left"
- Margin="336,43,0,0"
- Grid.Row="1"
- VerticalAlignment="Top"
- Width="173" Click="button_AddRecord_TypeStation_Click"/>
- <Button Name="button_DeleteRecord_TypeStation"
- Content="Удалить станцию"
- HorizontalAlignment="Left"
- Margin="368,85,0,0"
- Grid.Row="1"
- VerticalAlignment="Top"
- Width="109" Click="button_DeleteRecord_TypeStation_Click"/>
- <Button x:Name="button_ClearTypeStation"
- Content="Очистить "
- HorizontalAlignment="Left"
- Margin="64,144,0,0"
- Grid.Row="1"
- VerticalAlignment="Top"
- Width="110" Click="button_ClearTypeStation_Click"/>
- <!--Элементы в рамке-->
- <TextBlock HorizontalAlignment="Left"
- Margin="38,32,0,0"
- Grid.Row="1"
- TextWrapping="Wrap"
- Text="Название"
- VerticalAlignment="Top"
- RenderTransformOrigin="0.485,0.595"/>
- <TextBox Name="textBox_TypeStation"
- HorizontalAlignment="Left"
- Margin="38,54,0,0"
- Grid.Row="1"
- TextWrapping="Wrap"
- Text=""
- Background="WhiteSmoke"
- VerticalAlignment="Top"
- Width="120"/>
- <CheckBox Name="checkBox_passagerService"
- Content="Обслуживание пассажиров"
- HorizontalAlignment="Left"
- Margin="39,0,0,0"
- Grid.Row="1"
- VerticalAlignment="Center"/>
- <Rectangle HorizontalAlignment="Left"
- Height="101"
- Margin="23,25,0,0"
- Grid.Row="1"
- Stroke="Black"
- VerticalAlignment="Top"
- Width="198"/>
- </Grid>
- </TabItem>
- <TabItem Name="RoadsTab">
- <!--Заголовок вкладки "Дорога"-->
- <TabItem.Header>
- <TextBlock Text="Дорога"/>
- </TabItem.Header>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="200"/>
- </Grid.RowDefinitions>
- <!--Отображение данных "Дорога"-->
- <ListBox Name="listBox_Road"
- BorderBrush="Black"
- Background="WhiteSmoke"
- SelectionChanged="listBox_Road_SelectionChanged"/>
- <!--Кнопки-->
- <Button Name="button_AddRecord_Road"
- Content="Добавить/изменить дорогу"
- HorizontalAlignment="Left"
- Margin="352,52,0,0"
- Grid.Row="1"
- VerticalAlignment="Top"
- Width="166" Click="button_AddRecord_Road_Click"/>
- <Button Name="button_DeleteRecord_Road"
- Content="Удалить дорогу"
- HorizontalAlignment="Left"
- Margin="381,94,0,0"
- Grid.Row="1"
- VerticalAlignment="Top"
- Width="108" Click="button_DeleteRecord_Road_Click"/>
- <Button x:Name="button_ClearRoad"
- Content="Очистить "
- HorizontalAlignment="Left"
- Margin="239,143,0,0"
- Grid.Row="1"
- VerticalAlignment="Top"
- Width="110" Click="button_ClearRoad_Click"/>
- <!--Элементы в рамке-->
- <TextBlock HorizontalAlignment="Left"
- Margin="38,32,0,0"
- Grid.Row="1"
- TextWrapping="Wrap"
- Text="Название"
- VerticalAlignment="Top"
- RenderTransformOrigin="0.485,0.595"/>
- <TextBox Name="textBox_NameRoad"
- HorizontalAlignment="Left"
- Margin="38,49,0,0"
- Grid.Row="1"
- TextWrapping="Wrap"
- Text=""
- Background="WhiteSmoke"
- VerticalAlignment="Top"
- Width="120"/>
- <TextBlock HorizontalAlignment="Left"
- Margin="38,75,0,0"
- Grid.Row="1"
- TextWrapping="Wrap"
- Text="Тип"
- VerticalAlignment="Top"/>
- <ComboBox Name="comboBox_TypeRoad"
- HorizontalAlignment="Left"
- Margin="38,93,0,0"
- Grid.Row="1"
- VerticalAlignment="Top"
- Width="120"/>
- <TextBlock HorizontalAlignment="Left"
- Margin="38,119,0,0"
- Grid.Row="1"
- TextWrapping="Wrap"
- Text="Категория качества"
- VerticalAlignment="Top"/>
- <ComboBox x:Name="comboBox_CategoryQuality"
- HorizontalAlignment="Left"
- Margin="38,136,0,0"
- Grid.Row="1"
- VerticalAlignment="Top"
- Width="120"/>
- <Rectangle HorizontalAlignment="Left"
- Height="142"
- Margin="23,25,0,0"
- Grid.Row="1"
- Stroke="Black"
- VerticalAlignment="Top"
- Width="198"/>
- </Grid>
- </TabItem>
- </TabControl>
- </Grid>
- </Window>
|