finally
This commit is contained in:
42
ArrayReverseWindow.xaml
Normal file
42
ArrayReverseWindow.xaml
Normal file
@@ -0,0 +1,42 @@
|
||||
<Window x:Class="Lab.ArrayReverseWindow"
|
||||
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:Lab"
|
||||
mc:Ignorable="d"
|
||||
Title="ЛР3.1 - Инверсия массива" Height="450" Width="800">
|
||||
<Grid Margin="14">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel Grid.Row="0" Margin="0,0,0,10">
|
||||
<TextBlock FontSize="18" FontWeight="SemiBold" Text="ЛР3.1: Инвертировать массив"/>
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,6,0,0">
|
||||
Введите элементы массива (числа) одной строкой. Разделители: пробел, запятая, ;.
|
||||
Программа развернёт массив «на месте» (через обмен элементов).
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Grid.Row="1" FontWeight="SemiBold" Text="Ввод массива:"/>
|
||||
<TextBox Grid.Row="2" x:Name="ArrayInBox" Height="70" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto"/>
|
||||
|
||||
<StackPanel Grid.Row="3" Orientation="Horizontal">
|
||||
<Button Content="Инвертировать" Click="ClickReverse" MinWidth="140" MinHeight="30"/>
|
||||
<Button Content="Очистить" Margin="10,0,0,0" Click="ClickClear" MinWidth="140" MinHeight="30"/>
|
||||
<Button Content="Назад" Margin="10,0,0,0" Click="ClickBack" MinWidth="140" MinHeight="30"/>
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Grid.Row="4" FontWeight="SemiBold" Text="Результат:"/>
|
||||
<TextBox Grid.Row="5" x:Name="ArrayOutBox" TextWrapping="Wrap" IsReadOnly="True" VerticalScrollBarVisibility="Auto"/>
|
||||
|
||||
<TextBlock Grid.Row="6" x:Name="ArrayInfoText" Opacity="0.85" TextWrapping="Wrap"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user