Skip to content

Commit 038f1c3

Browse files
committed
提交修复
1 parent 03bd245 commit 038f1c3

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

软件系统客户端模版/FormMainWindow.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ private void 账户管理ToolStripMenuItem_Click(object sender, EventArgs e)
206206
OperateResultString result = UserClient.Net_simplify_client.ReadFromServer(CommonHeadCode.SimplifyHeadCode.获取账户信息);
207207
if (result.IsSuccess) return result.Content;
208208
else return result.ToMessageShowString();
209-
},m => UserClient.Net_simplify_client.ReadFromServer(CommonHeadCode.SimplifyHeadCode.更细账户信息 + m).IsSuccess);
209+
}, m => UserClient.Net_simplify_client.ReadFromServer(CommonHeadCode.SimplifyHeadCode.更细账户信息 + m).IsSuccess);
210210
fam.ShowDialog();
211211
fam.Dispose();
212212
}
@@ -255,7 +255,7 @@ private void Net_Socket_Client_Initialization()
255255
net_socket_client.ClientAlias = $"{UserClient.UserAccount.UserName} ({UserClient.UserAccount.Factory})";//标记客户端在线的名称
256256
net_socket_client.ClientStart();
257257
}
258-
catch(Exception ex)
258+
catch (Exception ex)
259259
{
260260
SoftBasic.ShowExceptionMessage(ex);
261261
}
@@ -304,10 +304,10 @@ private void Net_socket_client_AcceptString(AsyncStateOne object1, string object
304304
JObject json = JObject.Parse(object2.Substring(4));
305305
UserClient.DateTimeServer = json["Time"].ToObject<DateTime>();
306306
if (IsHandleCreated) Invoke(new Action(() =>
307-
{
308-
toolStripStatusLabel_time.Text = UserClient.DateTimeServer.ToString("yyyy-MM-dd HH:mm");
309-
label_file_count.Text = json["FileCount"].ToObject<int>().ToString();
310-
}));
307+
{
308+
toolStripStatusLabel_time.Text = UserClient.DateTimeServer.ToString("yyyy-MM-dd HH:mm");
309+
label_file_count.Text = json["FileCount"].ToObject<int>().ToString();
310+
}));
311311
}
312312
else if (head_code == CommonHeadCode.MultiNetHeadCode.文件数量)
313313
{
@@ -438,7 +438,7 @@ private void MainRenderInitialization()
438438

439439
private void SetShowRenderControl(UserControl control)
440440
{
441-
if(!ReferenceEquals(CurrentRender,control))
441+
if (!ReferenceEquals(CurrentRender, control))
442442
{
443443
CurrentRender = control;
444444
all_main_render.ForEach(c => c.Visible = false);
@@ -448,9 +448,9 @@ private void SetShowRenderControl(UserControl control)
448448
private void SetShowRenderControl(Type typeControl)
449449
{
450450
UserControl control = null;
451-
foreach(var c in all_main_render)
451+
foreach (var c in all_main_render)
452452
{
453-
if(c.GetType()==typeControl)
453+
if (c.GetType() == typeControl)
454454
{
455455
control = c;
456456
break;
@@ -471,6 +471,6 @@ private void label_file_count_Click(object sender, EventArgs e)
471471

472472
#endregion
473473

474-
474+
475475
}
476476
}

软件系统服务端模版/Form1.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private void 消息发送ToolStripMenuItem_Click(object sender, EventArgs e)
160160
using (FormInputAndAction fiaa = new FormInputAndAction(
161161
m =>
162162
{
163-
net_socket_server.SendAllClients(CommonHeadCode.MultiNetHeadCode.弹窗消息 + m); return true;
163+
net_socket_server.SendAllClients(CommonHeadCode.MultiNetHeadCode.弹窗消息 + m); return true;
164164
}))
165165
{
166166
fiaa.ShowDialog();
@@ -312,11 +312,11 @@ private void Net_simplify_server_ReceivedBytesEvent(AsyncStateBase object1, byte
312312
private void Net_simplify_server_ReceiveStringEvent(AsyncStateBase object1, string object2)
313313
{
314314
//必须返回结果,调用SendMessage(object1,[实际数据]);
315-
if(object2.StartsWith("A"))
315+
if (object2.StartsWith("A"))
316316
{
317317
DataProcessingWithStartA(object1, object2);
318318
}
319-
else if(object2.StartsWith("B"))
319+
else if (object2.StartsWith("B"))
320320
{
321321
DataProcessingWithStartB(object1, object2);
322322
}
@@ -612,7 +612,7 @@ private void Net_socket_clients_change(string str)
612612
#endregion
613613

614614
#region 后台计数线程
615-
615+
616616
/*********************************************************************************************
617617
*
618618
* 说明 一个后台线程,用来执行一些周期执行的东西
@@ -643,9 +643,9 @@ public void ThreadTimeTick()
643643
int hour = -1;
644644
int day = -1;
645645
Action DTimeShow = delegate
646-
{
647-
toolStripStatusLabel_time.Text = DateTime.Now.ToString();
648-
};
646+
{
647+
toolStripStatusLabel_time.Text = DateTime.Now.ToString();
648+
};
649649

650650
while (IsWindowShow)
651651
{
@@ -705,7 +705,7 @@ private void Simple_File_Initiaization()
705705
net_simple_file_server.FileChange += Net_simple_file_server_FileChange;
706706
net_simple_file_server.ServerStart(CommonLibrary.CommonLibrary.Port_Share_File);
707707
}
708-
catch(Exception ex)
708+
catch (Exception ex)
709709
{
710710
SoftBasic.ShowExceptionMessage(ex);
711711
}

0 commit comments

Comments
 (0)