finally
This commit is contained in:
42
MatrixCompareWindow.xaml
Normal file
42
MatrixCompareWindow.xaml
Normal file
@@ -0,0 +1,42 @@
|
||||
<Window x:Class="Lab.MatrixCompareWindow"
|
||||
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.2 - Матрица 11x11" Height="450" Width="800">
|
||||
<Grid Margin="14">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<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.2: Матрица 11x11 -> матрица 0/1"/>
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,6,0,0">
|
||||
Дана матрица A размера 11x11. Построить матрицу B того же размера, где
|
||||
B[i,j]=1, если A[i,j] строго больше диагонального элемента A[i,i] в своей строке, иначе 0.
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
||||
<Button Content="Сгенерировать A (-25..25)" Click="ClickGen" MinWidth="140" MinHeight="30"/>
|
||||
<Button Content="Построить B" Margin="10,0,0,0" Click="ClickBuild" MinWidth="140" MinHeight="30"/>
|
||||
<Button Content="Назад" Margin="10,0,0,0" Click="ClickBack" MinWidth="140" MinHeight="30"/>
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Grid.Row="2" FontWeight="SemiBold" Text="Матрица A (11x11):"/>
|
||||
<DataGrid Grid.Row="3" x:Name="GridA" />
|
||||
|
||||
<TextBlock Grid.Row="4" FontWeight="SemiBold" Text="Матрица B (0/1):"/>
|
||||
<DataGrid Grid.Row="5" x:Name="GridB" />
|
||||
|
||||
<TextBlock Grid.Row="6" x:Name="MatrixInfoText" Opacity="0.85" TextWrapping="Wrap"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user