فهرست منبع

清除无用代码

章政 8 سال پیش
والد
کامیت
000d671099
2فایلهای تغییر یافته به همراه0 افزوده شده و 10 حذف شده
  1. 0 1
      UAS-MES/Main.Designer.cs
  2. 0 9
      UAS-MES/Main.cs

+ 0 - 1
UAS-MES/Main.Designer.cs

@@ -263,7 +263,6 @@
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
             this.Name = "Main";
             this.Text = "优软科技MES系统";
-            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Main_FormClosing);
             this.Load += new System.EventHandler(this.Main_Load);
             this.BasicInf.ResumeLayout(false);
             this.BasicInf.PerformLayout();

+ 0 - 9
UAS-MES/Main.cs

@@ -80,11 +80,6 @@ namespace UAS_MES
         private void Main_Load(object sender, EventArgs e)
         {
             //杀死全部未关闭的打印进程
-            //Process[] processes = System.Diagnostics.Process.GetProcessesByName("lppa");
-            //for (int i = 0; i < processes.Length; i++)
-            //{
-            //    processes[i].Kill();
-            //}
             string[] lines = System.IO.File.ReadAllLines(Directory.GetCurrentDirectory() + @"\" + "lblprocess" + ".txt");
             foreach (string line in lines)
             {
@@ -296,9 +291,5 @@ namespace UAS_MES
                 this.Close();
             }
         }
-
-        private void Main_FormClosing(object sender, FormClosingEventArgs e)
-        { 
-        }
     }
 }