finally
This commit is contained in:
49
TriangleWindow.xaml
Normal file
49
TriangleWindow.xaml
Normal file
@@ -0,0 +1,49 @@
|
||||
<Window x:Class="Lab.TriangleWindow"
|
||||
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="ЛР2.1 - Треугольник" Height="450" Width="800">
|
||||
<Grid Margin="14">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Grid.Row="0" Margin="0,0,0,10">
|
||||
<TextBlock FontSize="18" FontWeight="SemiBold" Text="ЛР2.1: Проверка существования треугольника"/>
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,6,0,0">
|
||||
Даны положительные действительные x, y, z. Проверить, существует ли треугольник со сторонами x, y, z.
|
||||
Условие: сумма любых двух сторон строго больше третьей.
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
<Grid Grid.Row="1" Margin="0,0,0,8">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Label Grid.Row="0" Grid.Column="0" Content="x:" VerticalAlignment="Center"/>
|
||||
<TextBox Grid.Row="0" Grid.Column="1" x:Name="XBox"/>
|
||||
|
||||
<Label Grid.Row="1" Grid.Column="0" Content="y:" VerticalAlignment="Center"/>
|
||||
<TextBox Grid.Row="1" Grid.Column="1" x:Name="YBox"/>
|
||||
|
||||
<Label Grid.Row="2" Grid.Column="0" Content="z:" VerticalAlignment="Center"/>
|
||||
<TextBox Grid.Row="2" Grid.Column="1" x:Name="ZBox"/>
|
||||
</Grid>
|
||||
<StackPanel Grid.Row="2" Orientation="Horizontal">
|
||||
<Button Content="Проверить" Click="ClickCheck" MinWidth="140" MinHeight="30"/>
|
||||
<Button Content="Назад" Click="ClickBack" MinWidth="140" MinHeight="30" Padding="1,1,1,1" Margin="10,0,0,0"/>
|
||||
</StackPanel>
|
||||
<TextBlock Grid.Row="3" x:Name="ResultText" TextWrapping="Wrap" />
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user