Parcourir la source

捕获打印初始化异常

Hcsy il y a 8 ans
Parent
commit
1fa3ceb1e4
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  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()
         private void InPrint()
         {
         {
-            lbl = new ApplicationClass();
+            try
+            {
+                lbl = new ApplicationClass();
+            }
+            catch {
+                MessageBox.Show("未正确安装CodeSoft软件");
+            }
         }
         }
 
 
         private void Make_BigBoxWeight_SizeChanged(object sender, EventArgs e)
         private void Make_BigBoxWeight_SizeChanged(object sender, EventArgs e)