82 lines
3.1 KiB
XML
82 lines
3.1 KiB
XML
<Window x:Class="Lab8.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:Lab8"
|
|
mc:Ignorable="d"
|
|
Title="MainWindow" Height="450" Width="800">
|
|
<Grid Margin="10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="Доступные команды:"
|
|
FontSize="16"
|
|
FontWeight="Bold"
|
|
Margin="0,0,0,5"/>
|
|
|
|
<StackPanel Grid.Row="1" Margin="0,0,0,10">
|
|
<TextBlock Text="arrive <passenger> - добавить пассажира в очередь"/>
|
|
<TextBlock Text="board - посадить пассажира в автобус"/>
|
|
<TextBlock Text="next - показать следующего пассажира"/>
|
|
<TextBlock Text="clear - очистить очередь"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0,0,0,5">
|
|
<TextBox x:Name="CommandTextBox"
|
|
Width="500"
|
|
Height="28"
|
|
Margin="0,0,10,0"
|
|
PreviewKeyDown="CommandTextBox_PreviewKeyDown"/>
|
|
<Button Content="Выполнить"
|
|
Width="120"
|
|
Height="28"
|
|
Click="ExecuteButton_Click"/>
|
|
</StackPanel>
|
|
|
|
<TextBlock x:Name="ErrorTextBlock"
|
|
Grid.Row="3"
|
|
Foreground="Red"
|
|
Margin="0,0,0,10"
|
|
FontWeight="SemiBold"/>
|
|
|
|
<Grid Grid.Row="4">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="Очередь пассажиров"
|
|
Grid.Column="0"
|
|
Grid.Row="0"
|
|
Margin="0,0,5,5"
|
|
FontWeight="Bold"/>
|
|
|
|
<TextBlock Text="История команд и сообщений"
|
|
Grid.Column="1"
|
|
Grid.Row="0"
|
|
Margin="5,0,0,5"
|
|
FontWeight="Bold"/>
|
|
|
|
<ListBox x:Name="QueueListBox"
|
|
Grid.Column="0"
|
|
Grid.Row="1"
|
|
Margin="0,0,5,0"/>
|
|
|
|
<ListBox x:Name="HistoryListBox"
|
|
Grid.Column="1"
|
|
Grid.Row="1"
|
|
Margin="5,0,0,0"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|