Browse Source

捕获打印初始化异常

Hcsy 8 năm trước cách đây
mục cha
commit
1fa3ceb1e4
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      UAS-MES/FunctionCode/Make/Make_BigBoxWeight.cs

+ 7 - 1
UAS-MES/FunctionCode/Make/Make_BigBoxWeight.cs

@@ -74,7 +74,13 @@ namespace UAS_MES.Make
 
         private void InPrint()
         {
-            lbl = new ApplicationClass();
+            try
+            {
+                lbl = new ApplicationClass();
+            }
+            catch {
+                MessageBox.Show("未正确安装CodeSoft软件");
+            }
         }
 
         private void Make_BigBoxWeight_SizeChanged(object sender, EventArgs e)