Skip to content

Commit aaf9175

Browse files
committed
共享文件类的构造方法优化,不再传入委托
1 parent 150c1d5 commit aaf9175

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

Public/HslCommunication.dll

1 KB
Binary file not shown.

Public/HslCommunication.xml

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -641,11 +641,11 @@ private void Simple_File_Initiaization()
641641
{
642642
try
643643
{
644-
net_simple_file_server = new SimpleShareFileServer(
645-
list => JArray.FromObject(list).ToString(),
646-
str => JArray.Parse(str).ToObject<List<File_Save>>());
647-
//文件信息存储路径
648-
net_simple_file_server.FileSavePath = Application.StartupPath + @"\files.txt";
644+
net_simple_file_server = new SimpleShareFileServer()
645+
{
646+
//文件信息存储路径
647+
FileSavePath = Application.StartupPath + @"\files.txt"
648+
};
649649
net_simple_file_server.ReadFromFile();
650650
//文件存储路径
651651
net_simple_file_server.File_save_path = Application.StartupPath + @"\Files";

0 commit comments

Comments
 (0)