finally
This commit is contained in:
53
ClassMultiplyWindow.xaml
Normal file
53
ClassMultiplyWindow.xaml
Normal file
@@ -0,0 +1,53 @@
|
||||
<Window x:Class="Lab.ClassMultiplyWindow"
|
||||
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="ЛР5.1 — Класс + multiply" 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="ЛР5.1: Класс (first/second) и метод multiply(double)"/>
|
||||
<TextBlock TextWrapping="Wrap" Margin="0,6,0,0">
|
||||
Объект описывает число first + second, где first — целая часть (int), а second — дробная часть (double) в диапазоне [0;1).
|
||||
Метод multiply(double) возвращает новый объект, умноженный на заданное число.
|
||||
</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="first:" VerticalAlignment="Center"/>
|
||||
<TextBox Grid.Row="0" Grid.Column="1" x:Name="FirstBox" Text="3"/>
|
||||
|
||||
<Label Grid.Row="1" Grid.Column="0" Content="second (0 ≤ second < 1):" VerticalAlignment="Center"/>
|
||||
<TextBox Grid.Row="1" Grid.Column="1" x:Name="SecondBox" Text="0.25"/>
|
||||
|
||||
<Label Grid.Row="2" Grid.Column="0" Content="k (множитель):" VerticalAlignment="Center"/>
|
||||
<TextBox Grid.Row="2" Grid.Column="1" x:Name="KBox" Text="2"/>
|
||||
</Grid>
|
||||
|
||||
<StackPanel Grid.Row="2" Orientation="Horizontal">
|
||||
<Button Content="Умножить" Click="ClickMul" MinWidth="140" MinHeight="30"/>
|
||||
<Button Content="Назад" Margin="10,0,0,0" Click="ClickBack" MinWidth="140" MinHeight="30"/>
|
||||
</StackPanel>
|
||||
|
||||
<TextBlock Grid.Row="3" Padding="10" x:Name="ClassOutText" TextWrapping="Wrap" />
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user