|
@@ -5011,7 +5011,28 @@ namespace XHWK.WKTool
|
5011
|
5011
|
date = new RobotpenGateway.robotpenController.returnPointData(Form1_bigDataReportEvt1);
|
5012
|
5012
|
robotpenController.GetInstance().initDeletgate(ref date);
|
5013
|
5013
|
|
|
5014
|
+ int banWidth = robotpenController.GetInstance().getWidth();
|
|
5015
|
+ int banHeight = robotpenController.GetInstance().getHeight();
|
|
5016
|
+ if (banWidth > 0 && banHeight > 0)
|
|
5017
|
+ {
|
|
5018
|
+
|
|
5019
|
+ if (banWidth > banHeight)
|
|
5020
|
+ {
|
|
5021
|
+ m_nDeviceW = banWidth;
|
|
5022
|
+ m_nDeviceH = banHeight;
|
|
5023
|
+ }
|
|
5024
|
+ else
|
|
5025
|
+ {
|
|
5026
|
+ m_nDeviceW = banHeight;
|
|
5027
|
+ m_nDeviceH = banWidth;
|
|
5028
|
+ }
|
|
5029
|
+ }
|
|
5030
|
+ if (APP.IsOutputInfoLog)
|
|
5031
|
+ {
|
|
5032
|
+ LogHelper.WriteInfoLog(string.Format("手写板宽度为:{0} 高度为:{1}", m_nDeviceW, m_nDeviceH));
|
|
5033
|
+ }
|
5014
|
5034
|
CheckUsbConnect();
|
|
5035
|
+
|
5015
|
5036
|
////robotpenController.GetInstance().returnOptimizePointDataEvt += new robotpenController.returnOptimizePointData(Form1_returnOptimizePointDataEvt);
|
5016
|
5037
|
|
5017
|
5038
|
//robotpenController.GetInstance().startSyncNoteDataEvt += new robotpenController.startSyncNoteData(Form1_startSyncNoteDataEvt);
|