Skip to content

Commit 523fe30

Browse files
code style
1 parent 6fc17fc commit 523fe30

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

FileSyncAppWin/MainForm.cs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using FileSyncLibNet.Commons;
2-
31
namespace FileSyncAppWin
42
{
53
public partial class MainForm : Form
@@ -12,11 +10,11 @@ public MainForm()
1210
this.FormClosing += (s, e) => { FileSyncApp.Program.keepRunning = false; consoleThread?.Join(10_000); };
1311
consoleThread = new Thread(() =>
1412
{
15-
1613
FileSyncApp.Program.Main(null);
1714
});
18-
FileSyncApp.Program.JobsReady += (s,e)=> {
19-
foreach(var job in FileSyncApp.Program.Jobs)
15+
FileSyncApp.Program.JobsReady += (s, e) =>
16+
{
17+
foreach (var job in FileSyncApp.Program.Jobs)
2018
{
2119
job.Value.JobStarted += (j, text) =>
2220
{
@@ -36,6 +34,7 @@ public MainForm()
3634

3735
};
3836
consoleThread.Start();
37+
3938
this.Resize += ((s, e) =>
4039
{
4140
this.SuspendLayout();
@@ -56,20 +55,20 @@ public MainForm()
5655
{
5756
this.BeginInvoke(() => { WindowState = FormWindowState.Normal; ShowInTaskbar = true; });
5857
};
59-
notifyIcon1.BalloonTipClicked += (s, e) => { this.BeginInvoke(() => { WindowState = FormWindowState.Normal; ShowInTaskbar = true; }); };
58+
notifyIcon1.BalloonTipClicked += (s, e) => { this.BeginInvoke(() => { WindowState = FormWindowState.Normal; ShowInTaskbar = true; }); };
6059
//notifyIcon1.BalloonTipShown += (s, e) => { ShowInTaskbar = false; };
6160

6261
//this.WindowState = FormWindowState.Minimized;
6362
}
6463

65-
6664

67-
65+
66+
6867
private void NewLogOutput(string e)
6968
{
7069

71-
this.BeginInvoke(() => { textBox1.Text = string.Join(Environment.NewLine, (new string[] { $"{DateTime.Now.ToString("HH:mm:ss.fff")} {e}" }).Concat(textBox1.Text.Split(Environment.NewLine).Take(1000))); });
72-
70+
this.BeginInvoke(() => { textBox1.Text = string.Join(Environment.NewLine, (new string[] { $"{DateTime.Now.ToString("HH:mm:ss.fff")} {e}" }).Concat(textBox1.Text.Split(Environment.NewLine).Take(1000))); });
71+
7372
}
7473
}
7574
}

0 commit comments

Comments
 (0)