|
|
@ -6,6 +6,7 @@ using System.Linq;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Windows.Forms;
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
using HighWayIot.Plc;
|
|
|
|
|
|
|
|
|
|
|
|
namespace HighWayIot.Winform
|
|
|
|
namespace HighWayIot.Winform
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -30,6 +31,8 @@ namespace HighWayIot.Winform
|
|
|
|
//Console.OutputEncoding = System.Text.Encoding.UTF8;
|
|
|
|
//Console.OutputEncoding = System.Text.Encoding.UTF8;
|
|
|
|
//Console.InputEncoding = System.Text.Encoding.UTF8;
|
|
|
|
//Console.InputEncoding = System.Text.Encoding.UTF8;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AllocConsole();//调用系统API,调用控制台窗口
|
|
|
|
AllocConsole();//调用系统API,调用控制台窗口
|
|
|
|
// 设置控制台编码为系统默认编码(解决乱码问题)
|
|
|
|
// 设置控制台编码为系统默认编码(解决乱码问题)
|
|
|
|
Application.EnableVisualStyles();
|
|
|
|
Application.EnableVisualStyles();
|
|
|
|