|
|
|
@ -236,7 +236,6 @@ namespace DevicesService.Devices
|
|
|
|
|
{ |
|
|
|
|
//关闭报点 |
|
|
|
|
int ret = FiveInchDll.ComSendPoint(0, null); |
|
|
|
|
//Console.WriteLine("ComSendPoint:" + ret); |
|
|
|
|
if (true) |
|
|
|
|
{ |
|
|
|
|
string UIFile = System.IO.Directory.GetCurrentDirectory() + "\\adv_ui.jpg"; |
|
|
|
@ -252,52 +251,6 @@ namespace DevicesService.Devices
|
|
|
|
|
Console.WriteLine("ComSetSignBackgroundImage:" + ret1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//if (status == -1) |
|
|
|
|
//{ |
|
|
|
|
// status = FiveInchDll.OpenComDevice(GetTouchNumber); |
|
|
|
|
// Console.WriteLine("OpenComDevice:" + status); |
|
|
|
|
// if (status == 0) |
|
|
|
|
// { |
|
|
|
|
// ////2022-08-16 加实时报点 |
|
|
|
|
// //int ret = FiveInchDll.ComSendPoint(1, GetTouchPoint); |
|
|
|
|
// //Console.WriteLine("ComSendPoint:" + ret); |
|
|
|
|
// if (true) |
|
|
|
|
// { |
|
|
|
|
// string UIFile = System.IO.Directory.GetCurrentDirectory() + "\\adv_ui.jpg"; |
|
|
|
|
// int ret1 = FiveInchDll.ComSendAdvantageImage(UIFile); |
|
|
|
|
// Console.WriteLine("ComSendAdvantageImage:" + ret1); |
|
|
|
|
// FiveInchDll.ComSetBackGroundAdv(); |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
// if (true) |
|
|
|
|
// { |
|
|
|
|
// string UIFile = System.IO.Directory.GetCurrentDirectory() + "\\sign_ui.jpg"; |
|
|
|
|
// int ret1 = FiveInchDll.ComSetSignBackgroundImage(UIFile); |
|
|
|
|
// Console.WriteLine("ComSetSignBackgroundImage:" + ret1); |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
//} |
|
|
|
|
//else if (status == 0) |
|
|
|
|
//{ |
|
|
|
|
// ////2022-08-16 加实时报点 |
|
|
|
|
// //int ret = FiveInchDll.ComSendPoint(1, GetTouchPoint); |
|
|
|
|
// //Console.WriteLine("ComSendPoint:" + ret); |
|
|
|
|
// if (true) |
|
|
|
|
// { |
|
|
|
|
// string UIFile = System.IO.Directory.GetCurrentDirectory() + "\\adv_ui.jpg"; |
|
|
|
|
// int ret1 = FiveInchDll.ComSendAdvantageImage(UIFile); |
|
|
|
|
// Console.WriteLine("ComSendAdvantageImage:" + ret1); |
|
|
|
|
// FiveInchDll.ComSetBackGroundAdv(); |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
// if (true) |
|
|
|
|
// { |
|
|
|
|
// string UIFile = System.IO.Directory.GetCurrentDirectory() + "\\sign_ui.jpg"; |
|
|
|
|
// int ret1 = FiveInchDll.ComSetSignBackgroundImage(UIFile); |
|
|
|
|
// Console.WriteLine("ComSetSignBackgroundImage:" + ret1); |
|
|
|
|
// } |
|
|
|
|
//} |
|
|
|
|
} |
|
|
|
|
catch(Exception ex) { Log.Info(ex.Message); } |
|
|
|
|
finally { } |
|
|
|
|