-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTask3.xaml
More file actions
149 lines (125 loc) · 6.91 KB
/
Copy pathTask3.xaml
File metadata and controls
149 lines (125 loc) · 6.91 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<Window x:Class="ProectForJob.Task3"
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="Задание 3 - Стандартизация лог-файлов"
Height="650"
Width="900"
WindowStartupLocation="CenterScreen">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="60"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="120"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ScrollViewer Grid.Row="0" Grid.ColumnSpan="3" VerticalScrollBarVisibility="Auto">
<StackPanel Margin="20">
<TextBlock Text="Стандартизация лог-файлов"
FontWeight="Bold"
FontSize="16"
HorizontalAlignment="Center"
Margin="0,0,0,15"/>
<Expander Header="Примеры форматов (Кликабельно)" IsExpanded="False" Margin="0,0,0,10">
<StackPanel Margin="10">
<TextBlock Text="Формат 1:" FontWeight="Bold" Foreground="Red"/>
<TextBlock Text="10.03.2025 15:14:49.523 INFORMATION Версия программы: '3.4.0.48729'"
FontFamily="Consolas" FontSize="11" Margin="10,0,0,5"/>
<TextBlock Text="Формат 2:" FontWeight="Bold" Foreground="#FF9800" Margin="0,10,0,0"/>
<TextBlock Text="2025-03-10 15:14:51.5882| INFO|11|MobileComputer.GetDeviceId| Код устройства: '@MINDEO-M40-D-410244015546'"
FontFamily="Consolas" FontSize="11" Margin="10,0,0,5"/>
<TextBlock Text="Выходной формат:" FontWeight="Bold" Foreground="#4CAF50" Margin="0,10,0,0"/>
<TextBlock Text="DD-MM-YYYY HH:MM:SS.fff INFO DEFAULT Сообщение"
FontFamily="Consolas" FontSize="11" Margin="10,0,0,0"/>
</StackPanel>
</Expander>
<Border Background="#F0F8FF" CornerRadius="10" Padding="15" Margin="0,0,0,10">
<StackPanel>
<TextBlock Text="Выборка Файлов" FontWeight="Bold" FontSize="14" Margin="0,0,0,10"/>
<!-- АДАПТИВНАЯ СТРОКА С ОБЗОРОМ -->
<Grid Margin="0,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="Входной файл логов:" VerticalAlignment="Center" Margin="0,0,10,0"/>
<TextBox Grid.Column="1" x:Name="InputFilePathTextBox" IsReadOnly="True" Background="#E8E8E8"/>
<Button Grid.Column="2" x:Name="SelectInputFileButton" Click="SelectInputFile_Click"
Content="Обзор" Background="#2196F3" Foreground="White" Padding="10,5"
Cursor="Hand" Margin="5,0,0,0"/>
</Grid>
<TextBlock Text="Полный путь выходной файл (стандартизированные логи):" Margin="0,10,0,5"/>
<TextBox x:Name="OutputFilePathTextBox" Height="30" Background="#E8E8E8" IsReadOnly="True"/>
<TextBlock Text="Полный путь файла проблем (problems.txt):" Margin="0,10,0,5"/>
<TextBox x:Name="ProblemsFilePathTextBox" Height="30" Background="#E8E8E8" IsReadOnly="True"/>
</StackPanel>
</Border>
<Button x:Name="ProcessButton"
Click="ProcessButton_Click"
Content="Обработать логи"
Background="#4CAF50"
Foreground="White"
FontSize="14"
FontWeight="Bold"
Padding="20,10"
Cursor="Hand"
Margin="0,10"/>
<Border Background="#FFF9C4" CornerRadius="5" Padding="10" Margin="0,0,0,10" Visibility="Collapsed" x:Name="StatusBorder">
<TextBlock x:Name="StatusText" TextWrapping="Wrap"/>
</Border>
<TextBlock Text="Предпросмотр результата:" FontWeight="Bold" Margin="0,10,0,5"/>
<ListBox x:Name="PreviewListBox"
Focusable="False"
Height="200"
FontFamily="Consolas"
FontSize="11"
Background="#FFFFFF"
BorderBrush="#2196F3"
BorderThickness="1"
ScrollViewer.VerticalScrollBarVisibility="Disabled">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding}" TextWrapping="Wrap"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</StackPanel>
</ScrollViewer>
<Button Grid.Row="2"
Grid.Column="0"
x:Name="GoToTask1Button"
Click="GoToTask1_Click"
Content="Задание 1"
Background="#4CAF50"
Foreground="White"
FontSize="13"
FontWeight="Bold"
Width="120"
Height="35"
HorizontalAlignment="Right"
Margin="0,0,10,0"
Cursor="Hand"/>
<Button Grid.Row="2"
Grid.Column="2"
x:Name="GoToTask2Button"
Click="GoToTask2_Click"
Content="Задание 2"
Background="#FF9800"
Foreground="White"
FontSize="13"
FontWeight="Bold"
Width="120"
Height="35"
HorizontalAlignment="Left"
Margin="10,0,0,0"
Cursor="Hand"/>
</Grid>
</Window>