Skip to content

Commit 9f8cc7c

Browse files
committed
update readme
1 parent 29b47b1 commit 9f8cc7c

File tree

2 files changed

+55
-22
lines changed

2 files changed

+55
-22
lines changed

MainWindow.xaml

Lines changed: 50 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
<Window x:Class="LogSearchApp.MainWindow"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
Title="Log Search" Height="414" Width="715">
4+
Title="Log Search" Height="584" Width="803">
55
<Window.Resources>
66
<Style x:Key="SearchTextBoxStyle" TargetType="TextBox">
7+
<Setter Property="Background" Value="#FF748260"/>
8+
<Setter Property="BorderThickness" Value="1"/>
9+
<Setter Property="BorderBrush" Value="DarkGreen"/>
10+
<Setter Property="Foreground" Value="Black"/>
711
<Setter Property="Template">
812
<Setter.Value>
913
<ControlTemplate TargetType="TextBox">
@@ -15,39 +19,63 @@
1519
</Setter>
1620
</Style>
1721
</Window.Resources>
18-
<Grid Background="#FF1D4C17" Margin="0,0,0,-6">
19-
<TextBlock Text="Drag and drop your logs folder:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="29,12,0,0" FontFamily="Arial Black" FontWeight="Bold" FontSize="14" Foreground="#FF15A55A" Width="324"/>
22+
<Grid Background="#FF121C27" Margin="0,0,0,-6">
23+
<Grid.RowDefinitions>
24+
<RowDefinition Height="350*"/>
25+
<RowDefinition Height="*"/>
26+
<RowDefinition Height="143*"/>
27+
<RowDefinition Height="14*"/>
28+
</Grid.RowDefinitions>
29+
<TextBlock Text="Drag and drop your logs folder:" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="16,109,0,0" FontFamily="Segoe UI" FontWeight="Bold" FontSize="14" Foreground="#FF99BCD6" Width="324"/>
2030

21-
<ListBox AllowDrop="True" Name="FolderListBox" HorizontalAlignment="Left" VerticalAlignment="Top" Width="376" Height="35" Margin="29,28,0,0" Drop="FolderListBox_Drop" Foreground="Black" Background="#FF748260"/>
31+
<ListBox AllowDrop="True" Name="FolderListBox" HorizontalAlignment="Left" VerticalAlignment="Top" Width="407" Height="59" Margin="14,133,0,0" Drop="FolderListBox_Drop" Background="#FF203746" Foreground="#FF99BCD6" FontWeight="Bold" FontStyle="Italic" SelectionChanged="FolderListBox_SelectionChanged" RenderTransformOrigin="0.5,0.5">
32+
<ListBox.RenderTransform>
33+
<TransformGroup>
34+
<ScaleTransform/>
35+
<SkewTransform AngleY="0.147"/>
36+
<RotateTransform/>
37+
<TranslateTransform Y="0.497"/>
38+
</TransformGroup>
39+
</ListBox.RenderTransform>
40+
</ListBox>
2241

2342
<!-- Apply the SearchTextBoxStyle to the TextBox -->
24-
<TextBox x:Name="SearchTextBox" HorizontalAlignment="Left" VerticalAlignment="Top" Width="376" Margin="29,92,0,0" Height="24" Foreground="Black" TextChanged="SearchTextBox_TextChanged">
25-
<TextBox.Style>
26-
<Style TargetType="TextBox">
27-
<Setter Property="BorderThickness" Value="1"/>
28-
<Setter Property="BorderBrush" Value="DarkGreen"/>
29-
</Style>
30-
</TextBox.Style>
43+
<TextBox x:Name="SearchTextBox" HorizontalAlignment="Left" VerticalAlignment="Top" Width="392" Margin="10,218,0,0" Height="24" TextChanged="SearchTextBox_TextChanged" FontFamily="Segoe UI" RenderTransformOrigin="0.501,1.556" BorderBrush="#FFA97F22" Foreground="Black" FontWeight="Bold" FontSize="14">
44+
<TextBox.SelectionBrush>
45+
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
46+
<GradientStop Color="Black"/>
47+
<GradientStop Color="#FF983C3C" Offset="1"/>
48+
</LinearGradientBrush>
49+
</TextBox.SelectionBrush>
3150
</TextBox>
3251

33-
<Button Content="Search" Click="Search_Click" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Height="24" Margin="418,92,0,0" Background="#FF3F82F1"/>
34-
<Button Content="Clear" Click="Clear_Click" HorizontalAlignment="Left" VerticalAlignment="Top" Width="74" Height="25" Margin="498,92,0,0" Background="#FF3F82F1"/>
35-
<Button Content="ℹ️" Click="About_Click" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,10,10,0" Background="#FF3F82F1"/>
36-
<ProgressBar Name="SearchProgressBar" IsIndeterminate="True" Visibility="Collapsed" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Height="10" Margin="29,120,0,0"/>
37-
<TextBlock Name="ResultCountTextBlock" HorizontalAlignment="Left" Margin="29,355,0,0" VerticalAlignment="Top" FontFamily="Arial" FontWeight="Bold" FontSize="14"/>
52+
<Button Content="Search" Click="Search_Click" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Height="24" Margin="620,218,0,0" Background="#FF3F82F1" BorderBrush="Transparent" FontSize="14" Foreground="White" />
53+
<Button Content="Clear" Click="Clear_Click" HorizontalAlignment="Left" VerticalAlignment="Top" Width="74" Height="25" Margin="700,218,0,0" Background="{DynamicResource {x:Static SystemColors.HotTrackBrushKey}}" BorderBrush="Transparent" FontSize="14" Foreground="White" />
54+
<ProgressBar Name="SearchProgressBar" IsIndeterminate="True" Visibility="Collapsed" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Height="10" Margin="680,86,0,0"/>
55+
<TextBlock Name="ResultCountTextBlock" HorizontalAlignment="Left" Margin="10,133,0,0" VerticalAlignment="Top" FontFamily="Segoe UI" FontWeight="Bold" FontSize="14" Width="168" Grid.Row="2" Foreground="#FF99BCD6"/>
3856

39-
40-
41-
<ListView x:Name="ResultListView" HorizontalAlignment="Left" VerticalAlignment="Top" Width="651" Height="197" Margin="29,149,0,0">
57+
<ListView x:Name="ResultListView" HorizontalAlignment="Left" VerticalAlignment="Top" Width="770" Height="264" Margin="10,247,0,0" Grid.RowSpan="3">
4258
<ListView.View>
4359
<GridView>
4460
<GridViewColumn Header="Sentence" Width="220" DisplayMemberBinding="{Binding Line}"/>
45-
<GridViewColumn Header="File Name" Width="145" DisplayMemberBinding="{Binding FileName}"/>
46-
<GridViewColumn Header="File Path" Width="210" DisplayMemberBinding="{Binding Path}" />
61+
<GridViewColumn Header="File Name" Width="235" DisplayMemberBinding="{Binding FileName}"/>
62+
<GridViewColumn Header="File Path" Width="235" DisplayMemberBinding="{Binding Path}" />
4763
<GridViewColumn Header="Line Number" Width="72" DisplayMemberBinding="{Binding LineNumber}"/>
4864
</GridView>
4965
</ListView.View>
5066
</ListView>
51-
<Label Content="Input your keyword: " HorizontalAlignment="Left" Margin="29,68,0,0" VerticalAlignment="Top" FontFamily="Bookman Old Style" FontWeight="Bold" Foreground="#FF18903B" FontSize="14"/>
67+
<Label Content="Input your keyword: " HorizontalAlignment="Left" Margin="10,189,0,0" VerticalAlignment="Top" FontFamily="Segoe UI" FontWeight="Bold" Foreground="#FF99BCD6" FontSize="14"/>
68+
<Grid Grid.Row="0" Background="#171717" Margin="3,0,0,302">
69+
<TextBlock Text="Log Search" VerticalAlignment="Top"
70+
Margin="10,10,543,0"
71+
FontSize="28" Foreground="White"/>
72+
73+
<Button Content="" HorizontalAlignment="Right"
74+
VerticalAlignment="Top"
75+
Margin="0,10,10,0"
76+
Background="Transparent" BorderBrush="White"
77+
Foreground="White" FontSize="16"
78+
Click="About_Click" />
79+
</Grid>
5280
</Grid>
5381
</Window>

MainWindow.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,5 +155,10 @@ private void About_Click(object sender, RoutedEventArgs e)
155155
{
156156
MessageBox.Show("Build 3.0\n\nThis App will search keywords within log, txt, reg, html, json, and .xml files\nThis App will convert evtx files to xml for better handling\n\nThe author assumes no responsibility or liability for any errors using this App", "About", MessageBoxButton.OK, MessageBoxImage.Information);
157157
}
158+
159+
private void FolderListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
160+
{
161+
162+
}
158163
}
159164
}

0 commit comments

Comments
 (0)