<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>
