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

50 lines
2.6 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.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>