Commit 36ec8d61 顾剑亮

upload

0 个父辈
正在显示 74 个修改的文件 包含 1397 行增加0 行删除
此文件类型无法预览
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}
\ No newline at end of file
此文件类型无法预览

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30611.23
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Advantech_IO", "Advantech_IO\Advantech_IO.csproj", "{7033F1DE-FAD8-45F6-B6D1-97F44EBAA212}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{717CCDBD-905E-43DE-9099-687AE007A967}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7033F1DE-FAD8-45F6-B6D1-97F44EBAA212}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7033F1DE-FAD8-45F6-B6D1-97F44EBAA212}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7033F1DE-FAD8-45F6-B6D1-97F44EBAA212}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7033F1DE-FAD8-45F6-B6D1-97F44EBAA212}.Release|Any CPU.Build.0 = Release|Any CPU
{717CCDBD-905E-43DE-9099-687AE007A967}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{717CCDBD-905E-43DE-9099-687AE007A967}.Debug|Any CPU.Build.0 = Debug|Any CPU
{717CCDBD-905E-43DE-9099-687AE007A967}.Release|Any CPU.ActiveCfg = Release|Any CPU
{717CCDBD-905E-43DE-9099-687AE007A967}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D6EEDCB6-378F-44BB-86A3-8A62AAD0791B}
EndGlobalSection
EndGlobal
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{7033F1DE-FAD8-45F6-B6D1-97F44EBAA212}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Advantech</RootNamespace>
<AssemblyName>Advantech_IO</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net, Version=2.0.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.2.0.12\lib\net45\log4net.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="IO_Module.cs" />
<Compile Include="IO_State.cs" />
<Compile Include="IO_Type.cs" />
<Compile Include="Modbus.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>if not exist "C:\Neotel\DLL\$(ProjectName)" md "C:\Neotel\DLL\$(ProjectName)"
xcopy "$(TargetDir)" "C:\Neotel\DLL\$(ProjectName)\" /Y</PostBuildEvent>
</PropertyGroup>
</Project>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace Advantech
{
public class IO_Module
{
public delegate void DIO_Changed(IO_Module box, IO_State[] sta);
public delegate void Connect_Changed(IO_Module box);
public event DIO_Changed DI_Changed_Event;
public event DIO_Changed DO_Changed_Event;
public event Connect_Changed Connect_Event;
private SwitchRead switchRead;
private IO_State[] _stateDI; //DI状态
private IO_State[] _stateDO; //DO状态
private Queue<byte[]> sendCmd;
private Socket _client;
private Modbus modbus;
private readonly log4net.ILog log;
private Timer timerRecon;
private Timer timerSend;
private Timer timerListen;
public IO_Module(int diAddress, int diCount, int doAddress, int doCount, string logName = "IO")
{
DICount = diCount;
_stateDI = new IO_State[diCount];
int[] DIAddress = new int[diCount];
for (int i = 0; i < diCount; i++)
DIAddress[i] = diAddress++;
DOCount = doCount;
_stateDO = new IO_State[doCount];
int[] DOAddress = new int[doCount];
for (int i = 0; i < doCount; i++)
DOAddress[i] = doAddress++;
modbus = new Modbus(DIAddress, DOAddress);
sendCmd = new Queue<byte[]>();
log = log4net.LogManager.GetLogger(logName);
ThreadPool.SetMaxThreads(5, 5); //线程池最大数量
//Init();
}
public string IP { set; get; } = "";
public int Port { set; get; } = 502;
public bool IsConn { private set; get; } = false;
public int DICount { private set; get; } = 0;
public int DOCount { private set; get; } = 0;
public void Open()
{
timerRecon = new Timer(Reconn, null, 0, 2000);
log.Info(string.Format("===== IO[{0}] Open =====", IP));
}
public void Close()
{
if (timerRecon != null) timerRecon.Dispose();
IsConn = false;
if (timerSend != null) timerSend.Dispose();
if (timerListen != null) timerListen.Dispose();
if (_client != null)
{
if (_client.Connected)
_client.Shutdown(SocketShutdown.Both);
_client.Close();
}
log.Info(string.Format("===== IO[{0}] Close =====\r\n", IP));
}
public IO_State ReverseStatus(IO_State sta)
{
return sta == IO_State.On ? IO_State.Off : IO_State.On;
}
public IO_State ReadDI(int DIIndex)
{
return _stateDI[DIIndex];
}
public IO_State ReadDO(int DOIndex)
{
return _stateDO[DOIndex];
}
public void WriteDO(int DOIndex, IO_State sta)
{
if (!IsConn) return;
sendCmd.Enqueue(modbus.WriteDO(DOIndex, sta));
log.Info(string.Format("WriteDO[{0}] ({1},{2})", IP, DOIndex, sta.ToString()));
}
private void Reconn(object obj)
{
if (IsConn) return;
try
{
bool rtn = CheckIP();
if (!rtn) return;
ConnectServer();
IsConn = true;
switchRead = SwitchRead.FirstReadDI;
OpenTimer();
}
catch (Exception ex)
{
IsConn = false;
log.Error(string.Format("Reconn[{0}]", IP), ex);
}
Connect_Event?.Invoke(this);
}
private void Send(object obj)
{
if (!IsConn) return;
try
{
byte[] buff = null;
if (sendCmd.Count == 0)
{
if (switchRead == SwitchRead.FirstReadDI)
{
buff = modbus.ReadDI();
switchRead = SwitchRead.SecondReadDI;
}
else if (switchRead == SwitchRead.SecondReadDI)
{
buff = modbus.ReadDI();
switchRead = SwitchRead.ReadDO;
}
else if (switchRead == SwitchRead.ReadDO)
{
buff = modbus.ReadDO();
switchRead = SwitchRead.FirstReadDI;
}
}
else
{
buff = sendCmd.Dequeue();
}
timerListen.Change(0, 10); //启动监听
_client.Send(buff);
log.Debug("Send[" + IP + "]: " + HexBuff(buff, buff.Length));
}
catch (Exception ex)
{
log.Error(string.Format("Send[{0}]", IP), ex);
IsConn = false;
CloseTimer();
}
}
private void Listen(object obj)
{
if (!IsConn) return;
bool receive = false;
try
{
if (_client.Available == 0) return;
byte[] temp = new byte[_client.ReceiveBufferSize];
int count = _client.Receive(temp);
log.Debug("Receive[" + IP + "]: " + HexBuff(temp, count));
receive = true;
CommandProcess(temp, count);
timerListen.Change(Timeout.Infinite, 10); //停止监听
//timerSend.Change(0, 50); //启动发送
}
catch (Exception ex)
{
log.Error(string.Format("Listen[{0}]", IP), ex);
if (!receive)
{
IsConn = false;
CloseTimer();
}
}
}
private void CommandProcess(byte[] cmd, int count)
{
try
{
if (cmd[7] == 1) //ReadDO
{
IO_State[] staDO = modbus.GetDOState(cmd);
Array.Copy(staDO, 0, _stateDO, 0, staDO.Length);
DO_Changed_Event?.Invoke(this, staDO);
}
else if (cmd[7] == 2) //ReadDI
{
IO_State[] staDI = modbus.GetDIState(cmd);
Array.Copy(staDI, 0, _stateDI, 0, staDI.Length);
//string s = "";
//for (int i = 0; i < staDI.Length; i++)
// s += staDI[i].ToString() + " ";
//log.Info("Receive[" + IP + "]:DI " + s);
DI_Changed_Event?.Invoke(this, staDI);
}
else if (cmd[7] == 5) //WriteDO Single
{
//idx = Array.FindIndex(_addressOutput, s => s == cmd[9]);
//if (idx != -1)
//{
// IO_State[] staDO = new IO_State[_stateDO.Length];
// _stateDO[idx] = cmd[10] == 0xFF ? IO_State.On : IO_State.Off;
// Array.Copy(_stateDO, staDO, staDO.Length);
// DO_Changed_Event?.Invoke(this, staDO);
//}
}
else if (cmd[7] == 15) //WriteDO Multiple
{
//没有返回具体数值,只有寄存器个数,需要主动读取
}
}
catch (Exception ex)
{
log.Error(string.Format("CommonProcess[{0}]", IP), ex);
}
}
private bool CheckIP()
{
//IP合法
string pattern = @"^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)$";
bool rtn = System.Text.RegularExpressions.Regex.IsMatch(IP, pattern);
if (!rtn)
{
log.Info("非法的IP地址" + IP);
return false;
}
//Ping服务端
System.Net.NetworkInformation.Ping ping = new System.Net.NetworkInformation.Ping();
System.Net.NetworkInformation.PingReply result = ping.Send(IP, 1000);
ping.Dispose();
if (result.Status != System.Net.NetworkInformation.IPStatus.Success)
{
log.Info("Ping " + IP + " 请求没有响应");
return false;
}
return true;
}
private void ConnectServer()
{
_client = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
_client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendTimeout, 500);
_client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout, 500);
_client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.NoDelay, 1);
_client.Connect(IPAddress.Parse(IP), Port);
Thread.Sleep(100); //需要等待一会才能获取连接状态
log.Info("Socket[" + IP + "] Connect");
}
private void OpenTimer()
{
timerSend = new Timer(Send, null, 0, 50);
timerListen = new Timer(Listen, null, Timeout.Infinite, 10);
}
private void CloseTimer()
{
if (timerSend == null) timerSend.Dispose();
if (timerListen == null) timerListen.Dispose();
}
private string HexBuff(byte[] buff, int count)
{
string s = "";
if (buff == null) return s;
for (int i = 0; i < count; i++)
s += buff[i].ToString("X2") + " ";
return s;
}
private enum SwitchRead
{
FirstReadDI,
SecondReadDI,
ReadDO,
WriteDO
}
}
}
using System;
namespace Advantech
{
public enum IO_State
{
Off = 0,
On = 255
}
}
using System;
namespace Advantech
{
public enum IO_Type
{
None,
DI,
DO
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Advantech
{
internal class Modbus
{
private ushort _uid;
private int[] diAddress;
private int[] doAddress;
public Modbus(int[] diAddress, int[] doAddress)
{
this.diAddress = diAddress;
this.doAddress = doAddress;
_uid = 0;
}
public byte[] ReadDI()
{
byte[] data = Command();
byte[] buff = new byte[12];
Array.Copy(data, 0, buff, 0, data.Length);
buff[5] = 6; //后面字节数
buff[7] = 2; //功能码
buff[9] = (byte)diAddress[0]; //地址
buff[11] = (byte)diAddress.Length; //个数
return buff;
}
public byte[] ReadDO()
{
byte[] data = Command();
byte[] buff = new byte[12];
Array.Copy(data, 0, buff, 0, data.Length);
buff[5] = 6; //后面字节数
buff[7] = 1; //功能码
buff[9] = (byte)doAddress[0]; //地址
buff[11] = (byte)doAddress.Length; //个数
return buff;
}
public byte[] WriteDO(int address, IO_State sta)
{
byte[] data = Command();
byte[] buff = new byte[12];
Array.Copy(data, 0, buff, 0, data.Length);
buff[5] = 6; //后面字节数
buff[7] = 5; //功能码
buff[9] = (byte)doAddress[address]; //地址
buff[10] = (byte)sta; //写入值
return buff;
}
public IO_State[] GetDIState(byte[] buff)
{
int idx = 0;
int count = buff[8];
IO_State[] staDI = new IO_State[diAddress.Length];
for (int i = 1; i <= count; i++)
{
//int move = 0;
byte val = buff[8 + i];
for (int j = 0; j < 8; j++) //字节的0-7位
{
int n = (val & Convert.ToInt32(Math.Pow(2, j))) >> j;
staDI[idx++] = n == 1 ? IO_State.On : IO_State.Off;
//move++;
if (idx >= staDI.Length)
break;
}
}
return staDI;
}
public IO_State[] GetDOState(byte[] buff)
{
int idx = 0;
int count = buff[8];
IO_State[] staDO = new IO_State[doAddress.Length];
for (int i = 1; i <= count; i++)
{
//int move = 0;
byte val = buff[8 + i];
for (int j = 0; j < 8; j++) //字节的0-7位
{
int n = (val & Convert.ToInt32(Math.Pow(2, j))) >> j;
staDO[idx++] = n == 1 ? IO_State.On : IO_State.Off;
//move++;
if (idx >= staDO.Length)
break;
}
}
return staDO;
}
private byte[] Command()
{
byte[] flag = BitConverter.GetBytes(++_uid);
if (_uid == ushort.MaxValue) _uid = 0;
byte[] data = new byte[7];
data[0] = flag[1];
data[1] = flag[0];
data[2] = 0;
data[3] = 0;
data[4] = 0;
data[5] = 0;
data[6] = 255;
return data;
}
}
}
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Advantech_IO")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Advantech_IO")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("7033f1de-fad8-45f6-b6d1-97f44ebaa212")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
此文件类型无法预览
此文件类型无法预览
此文件类型无法预览
此文件的差异太大,无法显示。
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.6", FrameworkDisplayName = ".NET Framework 4.6")]
D:\Neotel\Advantech_IO\Advantech_IO\bin\Debug\Advantech_IO.dll
D:\Neotel\Advantech_IO\Advantech_IO\bin\Debug\Advantech_IO.pdb
D:\Neotel\Advantech_IO\Advantech_IO\bin\Debug\log4net.dll
D:\Neotel\Advantech_IO\Advantech_IO\bin\Debug\log4net.xml
D:\Neotel\Advantech_IO\Advantech_IO\obj\Debug\Advantech_IO.csproj.CoreCompileInputs.cache
D:\Neotel\Advantech_IO\Advantech_IO\obj\Debug\Advantech_IO.csproj.CopyComplete
D:\Neotel\Advantech_IO\Advantech_IO\obj\Debug\Advantech_IO.dll
D:\Neotel\Advantech_IO\Advantech_IO\obj\Debug\Advantech_IO.pdb
C:\Neotel\Program\Advantech_IO\Advantech_IO\bin\Debug\Advantech_IO.dll
C:\Neotel\Program\Advantech_IO\Advantech_IO\bin\Debug\Advantech_IO.pdb
C:\Neotel\Program\Advantech_IO\Advantech_IO\bin\Debug\log4net.dll
C:\Neotel\Program\Advantech_IO\Advantech_IO\bin\Debug\log4net.xml
C:\Neotel\Program\Advantech_IO\Advantech_IO\obj\Debug\Advantech_IO.csprojAssemblyReference.cache
C:\Neotel\Program\Advantech_IO\Advantech_IO\obj\Debug\Advantech_IO.csproj.CoreCompileInputs.cache
C:\Neotel\Program\Advantech_IO\Advantech_IO\obj\Debug\Advantech_IO.csproj.CopyComplete
C:\Neotel\Program\Advantech_IO\Advantech_IO\obj\Debug\Advantech_IO.dll
C:\Neotel\Program\Advantech_IO\Advantech_IO\obj\Debug\Advantech_IO.pdb
此文件类型无法预览
此文件类型无法预览
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.12" targetFramework="net46" />
</packages>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
</startup>
<log4net>
<appender name="IO_Module" type="log4net.Appender.RollingFileAppender">
<file value="logs/IO_Module.log"/>
<param name="Encoding" value="UTF-8"/>
<appendToFile value="true"/>
<rollingStyle value="Date"/>
<datePattern value="yyyy-MM-dd"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%date][%t]%-5p %m%n"/>
</layout>
</appender>
<root>
<level value="Debug"/>
<appender-ref ref="IO_Module"/>
</root>
</log4net>
</configuration>
\ No newline at end of file
namespace Test
{
partial class Form1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(306, 32);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label1
//
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(100, 23);
this.label1.TabIndex = 1;
this.label1.Text = "label1";
//
// label2
//
this.label2.Location = new System.Drawing.Point(12, 32);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(100, 23);
this.label2.TabIndex = 2;
this.label2.Text = "label2";
//
// label3
//
this.label3.Location = new System.Drawing.Point(12, 55);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(100, 23);
this.label3.TabIndex = 3;
this.label3.Text = "label3";
//
// label4
//
this.label4.Location = new System.Drawing.Point(12, 78);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(100, 23);
this.label4.TabIndex = 4;
this.label4.Text = "label4";
//
// label5
//
this.label5.Location = new System.Drawing.Point(118, 9);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(100, 23);
this.label5.TabIndex = 8;
this.label5.Text = "label5";
//
// label6
//
this.label6.Location = new System.Drawing.Point(118, 32);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(100, 23);
this.label6.TabIndex = 7;
this.label6.Text = "label6";
//
// label7
//
this.label7.Location = new System.Drawing.Point(118, 55);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(100, 23);
this.label7.TabIndex = 6;
this.label7.Text = "label7";
//
// label8
//
this.label8.Location = new System.Drawing.Point(118, 78);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(100, 23);
this.label8.TabIndex = 5;
this.label8.Text = "label8";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(497, 245);
this.Controls.Add(this.label5);
this.Controls.Add(this.label6);
this.Controls.Add(this.label7);
this.Controls.Add(this.label8);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Form1";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Test
{
public partial class Form1 : Form
{
private Advantech.IO_Module module;
private Advantech.IO_State sta = Advantech.IO_State.On;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
module = new Advantech.IO_Module(4, 4, "IO_Module");
module.IP = "192.168.12.151";
module.DO_Changed_Event += Module_DO_Changed_Event;
module.DI_Changed_Event += Module_DI_Changed_Event;
module.Open();
}
private void Module_DO_Changed_Event(Advantech.IO_Module box, Advantech.IO_State[] sta)
{
label5.BackColor = sta[0] == Advantech.IO_State.On ? Color.Lime : Color.Gray;
label6.BackColor = sta[1] == Advantech.IO_State.On ? Color.Lime : Color.Gray;
label7.BackColor = sta[2] == Advantech.IO_State.On ? Color.Lime : Color.Gray;
label8.BackColor = sta[3] == Advantech.IO_State.On ? Color.Lime : Color.Gray;
}
private void Module_DI_Changed_Event(Advantech.IO_Module box, Advantech.IO_State[] sta)
{
label1.BackColor = sta[0] == Advantech.IO_State.On ? Color.Lime : Color.Gray;
label2.BackColor = sta[1] == Advantech.IO_State.On ? Color.Lime : Color.Gray;
label3.BackColor = sta[2] == Advantech.IO_State.On ? Color.Lime : Color.Gray;
label4.BackColor = sta[3] == Advantech.IO_State.On ? Color.Lime : Color.Gray;
}
private void button1_Click(object sender, EventArgs e)
{
module.WriteDO(0, sta);
sta = module.ReverseStatus(sta);
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Test
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
log4net.Config.XmlConfigurator.Configure();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Test")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Test")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("717ccdbd-905e-43de-9099-687ae007a967")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本: 4.0.30319.42000
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Test.Properties
{
/// <summary>
/// 强类型资源类,用于查找本地化字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// 返回此类使用的缓存 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Test.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 覆盖当前线程的 CurrentUICulture 属性
/// 使用此强类型的资源类的资源查找。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Test.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{717CCDBD-905E-43DE-9099-687AE007A967}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>Test</RootNamespace>
<AssemblyName>Test</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net, Version=2.0.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\packages\log4net.2.0.12\lib\net45\log4net.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Advantech_IO\Advantech_IO.csproj">
<Project>{7033f1de-fad8-45f6-b6d1-97f44ebaa212}</Project>
<Name>Advantech_IO</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
此文件类型无法预览
此文件类型无法预览
此文件类型无法预览
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
</startup>
<log4net>
<appender name="IO_Module" type="log4net.Appender.RollingFileAppender">
<file value="logs/IO_Module.log"/>
<param name="Encoding" value="UTF-8"/>
<appendToFile value="true"/>
<rollingStyle value="Date"/>
<datePattern value="yyyy-MM-dd"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%date][%t]%-5p %m%n"/>
</layout>
</appender>
<root>
<level value="Debug"/>
<appender-ref ref="IO_Module"/>
</root>
</log4net>
</configuration>
\ No newline at end of file
此文件类型无法预览
此文件类型无法预览
此文件的差异太大,无法显示。

\ No newline at end of file
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.6", FrameworkDisplayName = ".NET Framework 4.6")]
此文件类型无法预览
b651e86042a06d57165ec530ed68001ac032657b
D:\Neotel\Advantech_IO\Test\bin\Debug\Test.exe.config
D:\Neotel\Advantech_IO\Test\bin\Debug\Test.exe
D:\Neotel\Advantech_IO\Test\bin\Debug\Test.pdb
D:\Neotel\Advantech_IO\Test\bin\Debug\Advantech_IO.dll
D:\Neotel\Advantech_IO\Test\bin\Debug\log4net.dll
D:\Neotel\Advantech_IO\Test\bin\Debug\Advantech_IO.pdb
D:\Neotel\Advantech_IO\Test\bin\Debug\log4net.xml
D:\Neotel\Advantech_IO\Test\obj\Debug\Test.csprojAssemblyReference.cache
D:\Neotel\Advantech_IO\Test\obj\Debug\Test.Form1.resources
D:\Neotel\Advantech_IO\Test\obj\Debug\Test.Properties.Resources.resources
D:\Neotel\Advantech_IO\Test\obj\Debug\Test.csproj.GenerateResource.cache
D:\Neotel\Advantech_IO\Test\obj\Debug\Test.csproj.CoreCompileInputs.cache
D:\Neotel\Advantech_IO\Test\obj\Debug\Test.csproj.CopyComplete
D:\Neotel\Advantech_IO\Test\obj\Debug\Test.exe
D:\Neotel\Advantech_IO\Test\obj\Debug\Test.pdb
此文件类型无法预览
此文件类型无法预览
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="log4net" version="2.0.12" targetFramework="net46" />
</packages>
\ No newline at end of file
此文件类型无法预览
此文件的差异太大,无法显示。
此文件的差异太大,无法显示。
此文件的差异太大,无法显示。
此文件的差异太大,无法显示。
此文件的差异太大,无法显示。
此文件的差异太大,无法显示。
此文件的差异太大,无法显示。
此文件的差异太大,无法显示。
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!