修正错误

This commit is contained in:
gongxh
2022-05-05 20:42:02 +08:00
parent c6e7e582b8
commit b6b365339f
14 changed files with 28 additions and 57 deletions

View File

@@ -1,4 +1,6 @@
using CleanMachine.Model;
using CleanMachine.Model.BAS;
using CleanMachine.Model.CM;
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.Domain.Models.ViewModels;
using CleanMachineHMI.forms;

View File

@@ -24,13 +24,13 @@ namespace CleanMachineHMI
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern int RegisterWindowMessage(string lpString);
private static bool hasKeyboard=false;
private static bool hasKeyboard = false;
private static readonly string USB = "USB";
static KeyboardAutoPopUp()
static KeyboardAutoPopUp()
{
// hasKeyboard = GetKeyboardPresent();
hasKeyboard = GetKeyboardPresent();
@@ -65,7 +65,7 @@ namespace CleanMachineHMI
if (hasKeyboard) return 0;
try
{
dynamic file = "C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe";
if (!System.IO.File.Exists(file))
return -1;

View File

@@ -2,7 +2,7 @@
#if DEBUG
//#define USE_LOCAL_TCP_DEBUG
#define USE_LOCAL_TCP_DEBUG
#endif
//启用心跳检查
@@ -10,6 +10,8 @@
#define UseHeartbeat
#endif
using CleanMachine.Model;
using CleanMachine.Model.BAS;
using CleanMachine.Model.CM;
using LeadDataBaseUtility;
using NModbus;