Pārlūkot izejas kodu

去除无用代码

章政 7 gadi atpakaļ
vecāks
revīzija
6368cc626d
2 mainītis faili ar 0 papildinājumiem un 19 dzēšanām
  1. 0 1
      UAS-MES/Main.cs
  2. 0 18
      UAS_MES_NEW/Main.cs

+ 0 - 1
UAS-MES/Main.cs

@@ -162,7 +162,6 @@ namespace UAS_MES
                 sw.Close();
                 fas.Close();
             }
-
         }
 
         /// <summary>

+ 0 - 18
UAS_MES_NEW/Main.cs

@@ -38,8 +38,6 @@ namespace UAS_MES_NEW
 
         Thread thread;
 
-        Thread TestPrint;
-
         DataHelper dh = SystemInf.dh;
 
         string sysdisc = Environment.GetEnvironmentVariable("windir").Substring(0, 1);
@@ -86,8 +84,6 @@ namespace UAS_MES_NEW
             Closelblprocess();
             thread = new Thread(DeleteLog);
             thread.Start();
-            TestPrint = new Thread(TestPrintEnable);
-            TestPrint.Start();
             this.Tag = "ShowDialogWindow";
             this.MainTabControl.DrawMode = TabDrawMode.OwnerDrawFixed;
             this.MainTabControl.Padding = new Point(CLOSE_SIZE + 10, CLOSE_SIZE);
@@ -163,20 +159,6 @@ namespace UAS_MES_NEW
 
         }
 
-        private void TestPrintEnable()
-        {
-            try
-            {
-                ApplicationClass lbl = new ApplicationClass();
-                SystemInf.EnablePrint = true;
-                lbl.Quit();
-            }
-            catch (Exception)
-            {
-                SystemInf.EnablePrint = false;
-            }
-        }
-
         /// <summary>
         ///设置窗体的最大化和最小化状态
         /// </summary>