调整winform所有的窗体背景色,更新hslcommunication组件,完成网络通信引擎。

This commit is contained in:
dathlin
2018-05-26 13:17:58 +08:00
parent 7ff21ff8f7
commit c4e8bd0ee8
58 changed files with 403 additions and 1047 deletions

View File

@@ -46,11 +46,11 @@ namespace HslCommunicationNetTestTool
string name = $"{m.IpAddress} [{m.IpPort}]";
TreeNode node = new TreeNode(name);
node.Tag = new HslCommunication.Enthernet.NetSimplifyClient(
new System.Net.IPEndPoint(System.Net.IPAddress.Parse(m.IpAddress),
int.Parse(m.IpPort)))
m.IpAddress,
int.Parse(m.IpPort))
{
ConnectTimeout = int.Parse(m.TimeOut),
KeyToken = new Guid(m.Token),
ConnectTimeOut = int.Parse(m.TimeOut),
Token = new Guid(m.Token),
};
node.ToolTipText = m.Guid;

View File

@@ -27,10 +27,10 @@ namespace HslCommunicationNetTestTool
try
{
Client = new HslCommunication.Enthernet.NetSimplifyClient(
new System.Net.IPEndPoint(System.Net.IPAddress.Parse(textBox1.Text), int.Parse(textBox2.Text)))
textBox1.Text, int.Parse(textBox2.Text))
{
KeyToken = new Guid(textBox3.Text),
ConnectTimeout = int.Parse(textBox4.Text),
Token = new Guid(textBox3.Text),
ConnectTimeOut = int.Parse(textBox4.Text),
};
IpAddress = textBox1.Text;

View File

@@ -31,8 +31,8 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="HslCommunication, Version=5.0.7.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HslCommunication.5.0.7\lib\net35\HslCommunication.dll</HintPath>
<Reference Include="HslCommunication, Version=5.0.10.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\HslCommunication.5.0.10\lib\net35\HslCommunication.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net35\Newtonsoft.Json.dll</HintPath>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="HslCommunication" version="5.0.7" targetFramework="net35" />
<package id="HslCommunication" version="5.0.10" targetFramework="net35" />
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net35" />
</packages>