Browse Source

修改看板布局

章政 8 years ago
parent
commit
6c80349de4

+ 1 - 10
UAS_KanBan/BaseForm.cs

@@ -1,13 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Windows.Forms;
-
-namespace UAS_KanBan
+namespace UAS_KanBan
 {
     public partial class BaseForm : CCWin.CCSkinMain
     {

+ 1 - 3
UAS_KanBan/DataHelper.cs

@@ -2,9 +2,7 @@
 using System;
 using System.Collections.Generic;
 using System.Data;
-using System.Linq;
 using System.Text;
-using System.Threading.Tasks;
 
 namespace UAS_KanBan
 {
@@ -31,7 +29,7 @@ namespace UAS_KanBan
                     connection = new OracleConnection(DBConnectionString);
                 connection.Open();
             }
-            catch (Exception e) { }
+            catch (Exception) { }
         }
 
         /// <summary>

+ 96 - 36
UAS_KanBan/Process.Designer.cs

@@ -47,15 +47,18 @@
             this.WorkShift_label = new CCWin.SkinControl.SkinLabel();
             this.Logo = new CCWin.SkinControl.SkinPictureBox();
             this.投入 = new CCWin.SkinControl.SkinLabel();
-            this.产出 = new CCWin.SkinControl.SkinLabel();
+            this.一次通过 = new CCWin.SkinControl.SkinLabel();
             this.收益率 = new CCWin.SkinControl.SkinLabel();
             this.故障数 = new CCWin.SkinControl.SkinLabel();
             this.直通率 = new CCWin.SkinControl.SkinLabel();
             this.班次 = new CCWin.SkinControl.SkinLabel();
             this.Line = new CCWin.SkinControl.SkinLabel();
             this.Title2 = new CCWin.SkinControl.SkinLabel();
-            this.Refresh = new System.Windows.Forms.Timer(this.components);
+            this.RefreshData = new System.Windows.Forms.Timer(this.components);
             this.机型 = new UAS_KanBan.CustomControl.ValueLabel();
+            this.产出 = new CCWin.SkinControl.SkinLabel();
+            this.Dash = new CCWin.SkinControl.SkinLabel();
+            this.wccode = new CCWin.SkinControl.SkinLabel();
             ((System.ComponentModel.ISupportInitialize)(this.Logo)).BeginInit();
             this.SuspendLayout();
             // 
@@ -72,7 +75,7 @@
             this.TopLine.MouseBack = null;
             this.TopLine.Name = "TopLine";
             this.TopLine.NormlBack = null;
-            this.TopLine.Size = new System.Drawing.Size(1285, 2);
+            this.TopLine.Size = new System.Drawing.Size(1306, 2);
             this.TopLine.TabIndex = 0;
             // 
             // BottomLine
@@ -88,7 +91,7 @@
             this.BottomLine.MouseBack = null;
             this.BottomLine.Name = "BottomLine";
             this.BottomLine.NormlBack = null;
-            this.BottomLine.Size = new System.Drawing.Size(1285, 2);
+            this.BottomLine.Size = new System.Drawing.Size(1306, 2);
             this.BottomLine.TabIndex = 1;
             // 
             // Line1
@@ -127,12 +130,12 @@
             this.MidLine.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.MidLine.ControlState = CCWin.SkinClass.ControlState.Normal;
             this.MidLine.DownBack = null;
-            this.MidLine.Location = new System.Drawing.Point(1021, 101);
+            this.MidLine.Location = new System.Drawing.Point(1020, 101);
             this.MidLine.Margin = new System.Windows.Forms.Padding(4);
             this.MidLine.MouseBack = null;
             this.MidLine.Name = "MidLine";
             this.MidLine.NormlBack = null;
-            this.MidLine.Size = new System.Drawing.Size(268, 2);
+            this.MidLine.Size = new System.Drawing.Size(289, 2);
             this.MidLine.TabIndex = 2;
             // 
             // Title
@@ -191,10 +194,10 @@
             this.产出_label.Location = new System.Drawing.Point(9, 648);
             this.产出_label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.产出_label.Name = "产出_label";
-            this.产出_label.Size = new System.Drawing.Size(290, 84);
+            this.产出_label.Size = new System.Drawing.Size(375, 84);
             this.产出_label.TabIndex = 9;
             this.产出_label.Tag = "AutoFont";
-            this.产出_label.Text = "总产出";
+            this.产出_label.Text = "一次通过";
             // 
             // 投入_label
             // 
@@ -207,10 +210,10 @@
             this.投入_label.Location = new System.Drawing.Point(9, 491);
             this.投入_label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.投入_label.Name = "投入_label";
-            this.投入_label.Size = new System.Drawing.Size(290, 84);
+            this.投入_label.Size = new System.Drawing.Size(418, 84);
             this.投入_label.TabIndex = 10;
             this.投入_label.Tag = "AutoFont";
-            this.投入_label.Text = "投入";
+            this.投入_label.Text = "投入/产出";
             // 
             // 收益率_label
             // 
@@ -220,7 +223,7 @@
             this.收益率_label.BackColor = System.Drawing.Color.Transparent;
             this.收益率_label.BorderColor = System.Drawing.Color.White;
             this.收益率_label.Font = new System.Drawing.Font("宋体", 50F, System.Drawing.FontStyle.Bold);
-            this.收益率_label.Location = new System.Drawing.Point(792, 491);
+            this.收益率_label.Location = new System.Drawing.Point(803, 491);
             this.收益率_label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.收益率_label.Name = "收益率_label";
             this.收益率_label.Size = new System.Drawing.Size(290, 84);
@@ -236,7 +239,7 @@
             this.故障数_label.BackColor = System.Drawing.Color.Transparent;
             this.故障数_label.BorderColor = System.Drawing.Color.White;
             this.故障数_label.Font = new System.Drawing.Font("宋体", 50F, System.Drawing.FontStyle.Bold);
-            this.故障数_label.Location = new System.Drawing.Point(792, 648);
+            this.故障数_label.Location = new System.Drawing.Point(803, 648);
             this.故障数_label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.故障数_label.Name = "故障数_label";
             this.故障数_label.Size = new System.Drawing.Size(290, 84);
@@ -252,7 +255,7 @@
             this.直通率_label.BackColor = System.Drawing.Color.Transparent;
             this.直通率_label.BorderColor = System.Drawing.Color.White;
             this.直通率_label.Font = new System.Drawing.Font("宋体", 50F, System.Drawing.FontStyle.Bold);
-            this.直通率_label.Location = new System.Drawing.Point(792, 331);
+            this.直通率_label.Location = new System.Drawing.Point(803, 331);
             this.直通率_label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.直通率_label.Name = "直通率_label";
             this.直通率_label.Size = new System.Drawing.Size(460, 84);
@@ -316,23 +319,24 @@
             this.投入.Size = new System.Drawing.Size(0, 87);
             this.投入.TabIndex = 19;
             this.投入.Tag = "AutoFont";
+            this.投入.SizeChanged += new System.EventHandler(this.投入_SizeChanged);
             // 
-            // 产出
+            // 一次通过
             // 
-            this.产出.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            this.一次通过.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left)));
-            this.产出.AutoSize = true;
-            this.产出.BackColor = System.Drawing.Color.Transparent;
-            this.产出.BorderColor = System.Drawing.Color.Red;
-            this.产出.BorderSize = 0;
-            this.产出.Font = new System.Drawing.Font("宋体", 52F, System.Drawing.FontStyle.Bold);
-            this.产出.ForeColor = System.Drawing.Color.Red;
-            this.产出.Location = new System.Drawing.Point(453, 648);
-            this.产出.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
-            this.产出.Name = "产出";
-            this.产出.Size = new System.Drawing.Size(0, 87);
-            this.产出.TabIndex = 18;
-            this.产出.Tag = "AutoFont";
+            this.一次通过.AutoSize = true;
+            this.一次通过.BackColor = System.Drawing.Color.Transparent;
+            this.一次通过.BorderColor = System.Drawing.Color.Red;
+            this.一次通过.BorderSize = 0;
+            this.一次通过.Font = new System.Drawing.Font("宋体", 52F, System.Drawing.FontStyle.Bold);
+            this.一次通过.ForeColor = System.Drawing.Color.Red;
+            this.一次通过.Location = new System.Drawing.Point(453, 648);
+            this.一次通过.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.一次通过.Name = "一次通过";
+            this.一次通过.Size = new System.Drawing.Size(0, 87);
+            this.一次通过.TabIndex = 18;
+            this.一次通过.Tag = "AutoFont";
             // 
             // 收益率
             // 
@@ -344,7 +348,7 @@
             this.收益率.BorderSize = 0;
             this.收益率.Font = new System.Drawing.Font("宋体", 52F, System.Drawing.FontStyle.Bold);
             this.收益率.ForeColor = System.Drawing.Color.Red;
-            this.收益率.Location = new System.Drawing.Point(1138, 491);
+            this.收益率.Location = new System.Drawing.Point(1149, 491);
             this.收益率.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.收益率.Name = "收益率";
             this.收益率.Size = new System.Drawing.Size(0, 87);
@@ -361,7 +365,7 @@
             this.故障数.BorderSize = 0;
             this.故障数.Font = new System.Drawing.Font("宋体", 52F, System.Drawing.FontStyle.Bold);
             this.故障数.ForeColor = System.Drawing.Color.Red;
-            this.故障数.Location = new System.Drawing.Point(1138, 648);
+            this.故障数.Location = new System.Drawing.Point(1149, 648);
             this.故障数.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.故障数.Name = "故障数";
             this.故障数.Size = new System.Drawing.Size(0, 87);
@@ -378,7 +382,7 @@
             this.直通率.BorderSize = 0;
             this.直通率.Font = new System.Drawing.Font("宋体", 52F, System.Drawing.FontStyle.Bold);
             this.直通率.ForeColor = System.Drawing.Color.Red;
-            this.直通率.Location = new System.Drawing.Point(1138, 331);
+            this.直通率.Location = new System.Drawing.Point(1149, 331);
             this.直通率.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.直通率.Name = "直通率";
             this.直通率.Size = new System.Drawing.Size(0, 87);
@@ -420,7 +424,7 @@
             this.Title2.BackColor = System.Drawing.Color.Transparent;
             this.Title2.BorderColor = System.Drawing.Color.White;
             this.Title2.Font = new System.Drawing.Font("宋体", 45F);
-            this.Title2.Location = new System.Drawing.Point(356, 201);
+            this.Title2.Location = new System.Drawing.Point(377, 201);
             this.Title2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.Title2.Name = "Title2";
             this.Title2.Size = new System.Drawing.Size(670, 75);
@@ -442,12 +446,65 @@
             this.机型.TabIndex = 17;
             this.机型.Tag = "AutoFont";
             // 
+            // 产出
+            // 
+            this.产出.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left)));
+            this.产出.AutoSize = true;
+            this.产出.BackColor = System.Drawing.Color.Transparent;
+            this.产出.BorderColor = System.Drawing.Color.Red;
+            this.产出.BorderSize = 0;
+            this.产出.Font = new System.Drawing.Font("宋体", 52F, System.Drawing.FontStyle.Bold);
+            this.产出.ForeColor = System.Drawing.Color.Red;
+            this.产出.Location = new System.Drawing.Point(537, 491);
+            this.产出.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.产出.Name = "产出";
+            this.产出.Size = new System.Drawing.Size(0, 87);
+            this.产出.TabIndex = 26;
+            this.产出.Tag = "AutoFont";
+            // 
+            // Dash
+            // 
+            this.Dash.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left)));
+            this.Dash.AutoSize = true;
+            this.Dash.BackColor = System.Drawing.Color.Transparent;
+            this.Dash.BorderColor = System.Drawing.Color.Red;
+            this.Dash.BorderSize = 0;
+            this.Dash.Font = new System.Drawing.Font("宋体", 52F, System.Drawing.FontStyle.Bold);
+            this.Dash.ForeColor = System.Drawing.Color.Red;
+            this.Dash.Location = new System.Drawing.Point(498, 491);
+            this.Dash.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.Dash.Name = "Dash";
+            this.Dash.Size = new System.Drawing.Size(82, 87);
+            this.Dash.TabIndex = 27;
+            this.Dash.Tag = "AutoFont";
+            this.Dash.Text = "/";
+            // 
+            // wccode
+            // 
+            this.wccode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.wccode.AutoSize = true;
+            this.wccode.BackColor = System.Drawing.Color.Transparent;
+            this.wccode.BorderColor = System.Drawing.Color.Red;
+            this.wccode.Font = new System.Drawing.Font("宋体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.wccode.ForeColor = System.Drawing.Color.Red;
+            this.wccode.Location = new System.Drawing.Point(63, 222);
+            this.wccode.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.wccode.Name = "wccode";
+            this.wccode.Size = new System.Drawing.Size(0, 50);
+            this.wccode.TabIndex = 28;
+            this.wccode.Visible = false;
+            // 
             // Process
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.Color.Black;
-            this.ClientSize = new System.Drawing.Size(1292, 859);
+            this.ClientSize = new System.Drawing.Size(1313, 859);
+            this.Controls.Add(this.wccode);
+            this.Controls.Add(this.Dash);
+            this.Controls.Add(this.产出);
             this.Controls.Add(this.Title2);
             this.Controls.Add(this.班次);
             this.Controls.Add(this.Line);
@@ -455,7 +512,7 @@
             this.Controls.Add(this.故障数);
             this.Controls.Add(this.直通率);
             this.Controls.Add(this.投入);
-            this.Controls.Add(this.产出);
+            this.Controls.Add(this.一次通过);
             this.Controls.Add(this.机型);
             this.Controls.Add(this.Logo);
             this.Controls.Add(this.WorkShift_label);
@@ -486,7 +543,7 @@
             this.SizeChanged += new System.EventHandler(this.Process_SizeChanged);
             this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Process_KeyDown);
             ((System.ComponentModel.ISupportInitialize)(this.Logo)).EndInit();
-            this.ResumeLayout(true);
+            this.ResumeLayout(false);
             this.PerformLayout();
 
         }
@@ -510,14 +567,17 @@
         private CCWin.SkinControl.SkinLabel WorkShift_label;
         private CCWin.SkinControl.SkinPictureBox Logo;
         private CCWin.SkinControl.SkinLabel 投入;
-        private CCWin.SkinControl.SkinLabel 产出;
+        private CCWin.SkinControl.SkinLabel 一次通过;
         private CCWin.SkinControl.SkinLabel 收益率;
         private CCWin.SkinControl.SkinLabel 故障数;
         private CCWin.SkinControl.SkinLabel 直通率;
         private CCWin.SkinControl.SkinLabel 班次;
         private CCWin.SkinControl.SkinLabel Line;
         private CCWin.SkinControl.SkinLabel Title2;
-        private System.Windows.Forms.Timer Refresh;
+        private System.Windows.Forms.Timer RefreshData;
         private CustomControl.ValueLabel 机型;
+        private CCWin.SkinControl.SkinLabel 产出;
+        private CCWin.SkinControl.SkinLabel Dash;
+        private CCWin.SkinControl.SkinLabel wccode;
     }
 }

+ 32 - 28
UAS_KanBan/Process.cs

@@ -1,11 +1,6 @@
-using CCWin;
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
+using System;
 using System.Data;
 using System.Drawing;
-using System.Linq;
-using System.Text;
 using System.Windows.Forms;
 using UAS_KanBan.CustomControl;
 
@@ -22,7 +17,7 @@ namespace UAS_KanBan
         {
             InitializeComponent();
             Line.Text = LineCode;
-            班次.Text = WcCode;
+            wccode.Text = WcCode;
             int WorkHeight = Screen.PrimaryScreen.Bounds.Width;
             if (WorkHeight <= 1024)
             {
@@ -43,44 +38,44 @@ namespace UAS_KanBan
         {
             asc.controllInitializeSize(this);
             Refresh_Tick(sender, e);
-            Refresh.Tick += Refresh_Tick;
-            Refresh.Interval = Setting.RefreshRate * 1000;
-            Refresh.Start();
+            RefreshData.Tick += Refresh_Tick;
+            RefreshData.Interval = Setting.RefreshRate * 1000;
+            RefreshData.Start();
             WindowState = FormWindowState.Maximized;
         }
 
         private void Refresh_Tick(object sender, EventArgs e)
         {
-            DataTable dt = (DataTable)dh.ExecuteSql("select KBI_LINE_ZTL('" + Line.Text + "','" + 班次.Text + "') from dual", "select");
-            string Data = dt.Rows[0][0].ToString();
-            string[] Item = Data.Split(':');
-            string[] ItemName = new string[Item.Length];
-            string[] ItemData = new string[Item.Length];
             try
             {
+                DataTable dt = (DataTable)dh.ExecuteSql("select KBI_LINE_ZTL('" + Line.Text + "','" + wccode.Text + "') from dual", "select");
+                string Data = dt.Rows[0][0].ToString();
+                string[] Item = Data.Split(':');
+                string[] ItemName = new string[Item.Length];
+                string[] ItemData = new string[Item.Length];
                 for (int i = 0; i < Item.Length; i++)
                 {
                     ItemName[i] = Item[i].Split('|')[0];
                     ItemData[i] = Item[i].Split('|')[1];
                 }
-            }
-            catch (Exception) { }
-            for (int i = 0; i < Item.Length; i++)
-            {
-                for (int j = 0; j < Controls.Count; j++)
+                for (int i = 0; i < Item.Length; i++)
                 {
-                    if (Controls[j].Name == ItemName[i])
+                    for (int j = 0; j < Controls.Count; j++)
                     {
-                        Controls[j].Text = ItemData[i];
+                        if (Controls[j].Name == ItemName[i])
+                        {
+                            Controls[j].Text = ItemData[i];
+                        }
                     }
                 }
             }
+            catch (Exception) { }
         }
 
         private void Process_SizeChanged(object sender, EventArgs e)
         {
             asc.controlAutoSize(this);
-            Line1.Size = new Size(2,BottomLine.Location.Y-TopLine.Location.Y);
+            Line1.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y);
             Line2.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y);
             Line3.Size = new Size(2, BottomLine.Location.Y - TopLine.Location.Y);
             Title.Location = new Point(Line1.Location.X + (Line2.Location.X - Line1.Location.X - Title.Size.Width) / 2, TopLine.Location.Y + (BottomLine.Location.Y - TopLine.Location.Y - Title.Size.Height) / 2);
@@ -90,18 +85,20 @@ namespace UAS_KanBan
             Line.Location = new Point(Line.Location.X, TopLine.Location.Y + (MidLine.Location.Y - TopLine.Location.Y - LineCode_label.Size.Height) / 2);
             班次.Location = new Point(班次.Location.X, MidLine.Location.Y + (BottomLine.Location.Y - MidLine.Location.Y - WorkShift_label.Size.Height) / 2);
             Logo.Size = new Size(Line1.Location.X - 20, BottomLine.Location.Y - TopLine.Location.Y - 20);
-            机型.Location = new Point(机型_label.Location.X + 机型_label.Width + 5, 机型_label.Location.Y);
-            投入.Location = new Point(投入_label.Location.X + 机型_label.Width + 5, 投入_label.Location.Y);
-            产出.Location = new Point(产出_label.Location.X + 机型_label.Width + 5, 产出_label.Location.Y);
+            机型.Location = new Point(机型_label.Location.X + 机型_label.Width + 15, 机型_label.Location.Y);
+            投入.Location = new Point(投入_label.Location.X + 机型_label.Width + 15, 投入_label.Location.Y);
+            Dash.Location = new Point(投入.Location.X + 投入.Size.Width, 投入_label.Location.Y);
+            产出.Location = new Point(Dash.Location.X + Dash.Size.Width, 投入_label.Location.Y);
+            一次通过.Location = new Point(产出_label.Location.X + 机型_label.Width + 15, 产出_label.Location.Y);
             直通率.Location = new Point(直通率_label.Location.X + 直通率_label.Width + 5, 直通率_label.Location.Y);
             收益率.Location = new Point(收益率_label.Location.X + 收益率_label.Width + 5, 收益率_label.Location.Y);
             故障数.Location = new Point(故障数_label.Location.X + 故障数_label.Width + 5, 故障数_label.Location.Y);
-            机型.MaximumSize = new Size(直通率_label.Location.X - 机型_label.Location.X - 机型_label.Width-15, 0);
+            机型.MaximumSize = new Size(直通率_label.Location.X - 机型_label.Location.X - 机型_label.Width - 15, 0);
         }
 
         private void Process_FormClosing(object sender, FormClosingEventArgs e)
         {
-            Refresh.Stop();
+            RefreshData.Stop();
         }
 
         private void Process_KeyDown(object sender, KeyEventArgs e)
@@ -111,5 +108,12 @@ namespace UAS_KanBan
                 Close();
             }
         }
+
+        private void 投入_SizeChanged(object sender, EventArgs e)
+        {
+            投入.Location = new Point(投入_label.Location.X + 机型_label.Width + 15, 投入_label.Location.Y);
+            Dash.Location = new Point(投入.Location.X + 投入.Size.Width, 投入_label.Location.Y);
+            产出.Location = new Point(Dash.Location.X + Dash.Size.Width, 投入_label.Location.Y);
+        }
     }
 }

+ 1 - 1
UAS_KanBan/Process.resx

@@ -117,7 +117,7 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
-  <metadata name="Refresh.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+  <metadata name="RefreshData.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>17, 17</value>
   </metadata>
   <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

+ 5 - 0
UAS_KanBan/Setting.cs

@@ -43,6 +43,11 @@ namespace UAS_KanBan
             try
             {
                 RefreshRate = int.Parse(TimeSpan.Text);
+                if (RefreshRate < 5)
+                {
+                    MessageBox.Show("刷新时间不能小于5秒");
+                    return;
+                }
             }
             catch (Exception)
             {