Explorar o código

捕获打印初始化异常

Hcsy %!s(int64=8) %!d(string=hai) anos
pai
achega
1fa3ceb1e4
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  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)