-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTask1.xaml
More file actions
97 lines (89 loc) · 3.62 KB
/
Copy pathTask1.xaml
File metadata and controls
97 lines (89 loc) · 3.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<Window x:Class="ProectForJob.Task1"
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:ProectForJob"
mc:Ignorable="d"
Title="Задание 1 - Компрессия строк"
Height="450"
Width="800"
WindowStartupLocation="CenterScreen">
<Grid>
<!-- Выбор Действия -->
<TextBlock Text="Выберите операцию:" FontWeight="Bold" FontSize="14" Margin="10,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="150"/>
<ComboBox x:Name="OperationComboBox"
Height="22"
Margin="170,5,0,0"
SelectedIndex="0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="160">
<ComboBoxItem Content="Сжать (Компрессия)"/>
<ComboBoxItem Content="Разжать (Декомпрессия)"/>
</ComboBox>
<!-- Ввод -->
<TextBlock Text="Входная строка:" FontWeight="Bold" FontSize="14" Margin="10,30,110,35" Grid.RowSpan="2" Grid.ColumnSpan="2"/>
<TextBox x:Name="InputTextBox"
AcceptsReturn="True"
TextWrapping="Wrap"
VerticalScrollBarVisibility="Auto"
FontFamily="Consolas"
FontSize="13"
Padding="8"
BorderBrush="#2196F3"
BorderThickness="1"
Text="aaabbcccdde" Margin="10,60,10,20"/>
<!-- Вывод -->
<TextBlock Text="Результат:" FontWeight="Bold" FontSize="14" Margin="0,30,0,10" Grid.Column="2"/>
<TextBox x:Name="OutputTextBox"
IsReadOnly="True"
TextWrapping="Wrap"
VerticalScrollBarVisibility="Auto"
FontFamily="Consolas"
FontSize="13"
Padding="8"
Background="#F5F5F5"
BorderBrush="#CCCCCC"
BorderThickness="1" Grid.Column="2" Margin="10,60,10,20"/>
<!-- Подтверждение операции -->
<Button
Grid.Column="1"
x:Name="ExecuteButton"
Click="ExecuteButton_Click"
Content="Выполнить"
Background="#4CAF50"
Foreground="White"
FontSize="14"
FontWeight="Bold"
Cursor="Hand" Margin="0,107,0,74"/>
<!-- Иные задачи -->
<Button x:Name="GoToTask2Button"
Click="GoToTask2_Click"
Content="Задание 2"
Background="#2196F3"
Foreground="White"
FontSize="13"
FontWeight="Bold"
Padding="20,8"
Margin="30,10,30,10" Grid.Row="1"/>
<Button x:Name="GoToTask3Button"
Click="GoToTask3_Click"
Content="Задание 3"
Background="#FF9800"
Foreground="White"
FontSize="13"
FontWeight="Bold"
Padding="20,8"
Margin="30,10,30,10" Grid.Column="2" Grid.Row="1">
</Button>
<!-- Поле -->
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="60"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="120"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
</Grid>
</Window>