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

44 lines
2.1 KiB
XML
Raw 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.FibonacciWindow"
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.2 - Фибоначчи" Height="450" Width="800">
<Grid Margin="14">
<Grid.RowDefinitions>
<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=Р2.2: Числа Фибоначчи меньше N"/>
<TextBlock TextWrapping="Wrap" Margin="0,6,0,0">
Введите целое N (N &gt; 0). Программа выведет все числа Фибоначчи, строго меньшие N.
</TextBlock>
</StackPanel>
<Grid Grid.Row="1" Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Content="N:" VerticalAlignment="Center"/>
<TextBox Grid.Column="1" x:Name="NBox"/>
</Grid>
<StackPanel Grid.Row="2" Orientation="Horizontal">
<Button Content="Посчитать" Click="ClickCalc" MinWidth="140" MinHeight="30"/>
<Button Content="Назад" Margin="10,0,0,0" Click="ClickBack" MinWidth="140" MinHeight="30"/>
</StackPanel>
<TextBox Grid.Row="3" x:Name="OutBox" TextWrapping="Wrap" IsReadOnly="True" VerticalScrollBarVisibility="Auto" Margin="0,10,0,10" />
<TextBlock Grid.Row="4" x:Name="InfoText" Opacity="0.85" TextWrapping="Wrap" />
</Grid>
</Window>