1
0
Files
OAiP-Presnyakov_Ilya-Labora…/ArrayReverseWindow.xaml
Debug_pro 43d7845cf1 finally
2026-02-12 01:01:44 +03:00

43 lines
2.3 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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>