Skip to content

Commit 9d8564d

Browse files
author
Hiram
committed
add UILogger
1 parent b24944f commit 9d8564d

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

HiProtobuf/HiProtobuf.UI/HiProtobuf.UI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<Compile Include="HiProtobuf.Designer.cs">
5555
<DependentUpon>HiProtobuf.cs</DependentUpon>
5656
</Compile>
57-
<Compile Include="Logger.cs" />
57+
<Compile Include="UILogger.cs" />
5858
<Compile Include="Program.cs" />
5959
<Compile Include="Properties\AssemblyInfo.cs" />
6060
<Compile Include="Config.cs" />

HiProtobuf/HiProtobuf.UI/HiProtobuf.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ private void Form1_Load(object sender, EventArgs e)
2626
{
2727
Log.OnInfo += (x) =>
2828
{
29-
textBox6.Text = Logger.Log;
29+
textBox6.Text = UILogger.Log;
3030
};
3131
Log.OnWarning += (x) =>
3232
{
33-
textBox6.Text = Logger.Log;
33+
textBox6.Text = UILogger.Log;
3434
};
3535
Log.OnError += (x) =>
3636
{
37-
textBox6.Text = Logger.Log;
37+
textBox6.Text = UILogger.Log;
3838
};
3939
}
4040

HiProtobuf/HiProtobuf.UI/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static class Program
2222
[STAThread]
2323
static void Main()
2424
{
25-
Log.LogHandler = new Logger();
25+
Log.LogHandler = new UILogger();
2626
Config.Load();
2727

2828
Application.EnableVisualStyles();

HiProtobuf/HiProtobuf.UI/Logger.cs renamed to HiProtobuf/HiProtobuf.UI/UILogger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace HiProtobuf.UI
99
{
10-
internal class Logger : ILogHandler
10+
internal class UILogger : ILogHandler
1111
{
1212
public static string Log;
1313
public void Info(params object[] args)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
383484a4a7e44ecca0734a0b472c7dcc2c786ad4
1+
f846fb7a7bf7a73a430d5062da41f61fb8bef54d

HiProtobuf/HiProtobuf.UI/obj/Debug/build.force

Whitespace-only changes.

0 commit comments

Comments
 (0)