调整winform所有的窗体背景色,更新hslcommunication组件,完成网络通信引擎。
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user