44 lines
2.1 KiB
XML
44 lines
2.1 KiB
XML
<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 > 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>
|