Browse Source

简化代码

章政 7 years ago
parent
commit
24bfb98be4

+ 4 - 2
UAS_MES_NEW/FunctionCode/SystemSetting/SystemSetting_SysNav.Designer.cs

@@ -49,7 +49,7 @@
             this.Save.Image = ((System.Drawing.Image)(resources.GetObject("Save.Image")));
             this.Save.Image = ((System.Drawing.Image)(resources.GetObject("Save.Image")));
             this.Save.IsShowBorder = true;
             this.Save.IsShowBorder = true;
             this.Save.Location = new System.Drawing.Point(436, 450);
             this.Save.Location = new System.Drawing.Point(436, 450);
-            this.Save.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+            this.Save.Margin = new System.Windows.Forms.Padding(2);
             this.Save.MoveImage = ((System.Drawing.Image)(resources.GetObject("Save.MoveImage")));
             this.Save.MoveImage = ((System.Drawing.Image)(resources.GetObject("Save.MoveImage")));
             this.Save.Name = "Save";
             this.Save.Name = "Save";
             this.Save.NormalImage = ((System.Drawing.Image)(resources.GetObject("Save.NormalImage")));
             this.Save.NormalImage = ((System.Drawing.Image)(resources.GetObject("Save.NormalImage")));
@@ -73,7 +73,7 @@
             this.sn_defaultprint});
             this.sn_defaultprint});
             this.SysNavDGV.EnableContentClick = true;
             this.SysNavDGV.EnableContentClick = true;
             this.SysNavDGV.Location = new System.Drawing.Point(2, 1);
             this.SysNavDGV.Location = new System.Drawing.Point(2, 1);
-            this.SysNavDGV.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+            this.SysNavDGV.Margin = new System.Windows.Forms.Padding(2);
             this.SysNavDGV.Name = "SysNavDGV";
             this.SysNavDGV.Name = "SysNavDGV";
             this.SysNavDGV.RowTemplate.Height = 27;
             this.SysNavDGV.RowTemplate.Height = 27;
             this.SysNavDGV.Size = new System.Drawing.Size(922, 439);
             this.SysNavDGV.Size = new System.Drawing.Size(922, 439);
@@ -115,7 +115,9 @@
             // 
             // 
             this.sn_defaultprint.DataPropertyName = "sn_defaultprint";
             this.sn_defaultprint.DataPropertyName = "sn_defaultprint";
             this.sn_defaultprint.HeaderText = "默认打印";
             this.sn_defaultprint.HeaderText = "默认打印";
+            this.sn_defaultprint.MinimumWidth = 120;
             this.sn_defaultprint.Name = "sn_defaultprint";
             this.sn_defaultprint.Name = "sn_defaultprint";
+            this.sn_defaultprint.Width = 120;
             // 
             // 
             // SystemSetting_SysNav
             // SystemSetting_SysNav
             // 
             // 

+ 0 - 5
UAS_MES_NEW/FunctionCode/SystemSetting/SystemSetting_SysNav.cs

@@ -1,10 +1,5 @@
 using System;
 using System;
-using System.Collections.Generic;
-using System.ComponentModel;
 using System.Data;
 using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
 using System.Windows.Forms;
 using System.Windows.Forms;
 using UAS_MES_NEW.DataOperate;
 using UAS_MES_NEW.DataOperate;
 using UAS_MES_NEW.Entity;
 using UAS_MES_NEW.Entity;

+ 0 - 6
UAS_MES_NEW/PublicForm/ChangePwd.cs

@@ -1,11 +1,5 @@
 using System;
 using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
 using System.Runtime.InteropServices;
 using System.Runtime.InteropServices;
-using System.Text;
 using System.Windows.Forms;
 using System.Windows.Forms;
 using UAS_MES_NEW.DataOperate;
 using UAS_MES_NEW.DataOperate;
 using UAS_MES_NEW.Entity;
 using UAS_MES_NEW.Entity;

+ 1 - 5
UAS_MES_NEW/PublicMethod/DrawHelper.cs

@@ -1,9 +1,5 @@
-using System;
-using System.Collections.Generic;
-using System.Drawing;
+using System.Drawing;
 using System.Drawing.Drawing2D;
 using System.Drawing.Drawing2D;
-using System.Linq;
-using System.Text;
 
 
 namespace UAS_MES_NEW.PublicMethod
 namespace UAS_MES_NEW.PublicMethod
 {
 {

+ 0 - 1
UAS_MES_NEW/PublicMethod/Print.cs

@@ -6,7 +6,6 @@ using System.IO;
 using UAS_MES_NEW.Entity;
 using UAS_MES_NEW.Entity;
 using System.Text.RegularExpressions;
 using System.Text.RegularExpressions;
 using System.Windows.Forms;
 using System.Windows.Forms;
-using System;
 
 
 namespace UAS_MES_NEW.PublicMethod
 namespace UAS_MES_NEW.PublicMethod
 {
 {

+ 0 - 3
UAS_MES_NEW/PublicMethod/ReadDataFromSerialPort.cs

@@ -1,9 +1,6 @@
 using System;
 using System;
 using System.Collections.Generic;
 using System.Collections.Generic;
 using System.IO.Ports;
 using System.IO.Ports;
-using System.Linq;
-using System.Text;
-using System.Windows;
 using System.Windows.Forms;
 using System.Windows.Forms;
 
 
 namespace UAS_MES_NEW.PublicMethod
 namespace UAS_MES_NEW.PublicMethod