Browse Source

添加界面功能设置

章政 7 years ago
parent
commit
790d6a9e0c

+ 162 - 125
UAS-出货标签管理(吉利通)/UAS_出货标签管理.Designer.cs

@@ -89,16 +89,23 @@
             this.front_sg_separator = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.FrontCollect = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.CollectionProcess = new UAS_LabelMachine.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
+            this.groupBox2 = new System.Windows.Forms.GroupBox();
+            this.radioButton7 = new System.Windows.Forms.RadioButton();
+            this.radioButton6 = new System.Windows.Forms.RadioButton();
+            this.radioButton5 = new System.Windows.Forms.RadioButton();
+            this.groupBox1 = new System.Windows.Forms.GroupBox();
+            this.ManualCollection = new System.Windows.Forms.RadioButton();
+            this.AutoCollection = new System.Windows.Forms.RadioButton();
             this.DetailRange2 = new System.Windows.Forms.NumericUpDown();
             this.DetailRange1 = new System.Windows.Forms.NumericUpDown();
             this.outboxProcess = new System.Windows.Forms.Label();
             this.midboxProcess = new System.Windows.Forms.Label();
             this.label25 = new System.Windows.Forms.Label();
             this.label24 = new System.Windows.Forms.Label();
-            this.button8 = new System.Windows.Forms.Button();
-            this.button7 = new System.Windows.Forms.Button();
-            this.button6 = new System.Windows.Forms.Button();
-            this.button5 = new System.Windows.Forms.Button();
+            this.AddOutBox = new System.Windows.Forms.Button();
+            this.CutOutBox = new System.Windows.Forms.Button();
+            this.CutMidBox = new System.Windows.Forms.Button();
+            this.AddMidBox = new System.Windows.Forms.Button();
             this.enterTextBox4 = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.enterTextBox3 = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.ButtonSetMidBox = new System.Windows.Forms.Button();
@@ -106,17 +113,12 @@
             this.ButtonRecheckPass = new System.Windows.Forms.Button();
             this.ButtonCollectPass = new System.Windows.Forms.Button();
             this.checkBox2 = new System.Windows.Forms.CheckBox();
-            this.radioButton7 = new System.Windows.Forms.RadioButton();
             this.label23 = new System.Windows.Forms.Label();
-            this.radioButton5 = new System.Windows.Forms.RadioButton();
-            this.radioButton6 = new System.Windows.Forms.RadioButton();
             this.label22 = new System.Windows.Forms.Label();
             this.RecheckBarcode = new System.Windows.Forms.RadioButton();
             this.RecheckCuprodcode = new System.Windows.Forms.RadioButton();
             this.DetailRange = new System.Windows.Forms.CheckBox();
             this.label21 = new System.Windows.Forms.Label();
-            this.ManualCollection = new System.Windows.Forms.RadioButton();
-            this.AutoCollection = new System.Windows.Forms.RadioButton();
             this.Process_midboxcode = new System.Windows.Forms.Label();
             this.Process_outboxcode = new System.Windows.Forms.Label();
             this.CollectedCount = new System.Windows.Forms.Label();
@@ -215,6 +217,8 @@
             this.FrontendCheck = new UAS_LabelMachine.CustomControl.SerialPortWithTag();
             ((System.ComponentModel.ISupportInitialize)(this.MidSource)).BeginInit();
             this.CollectionProcess.SuspendLayout();
+            this.groupBox2.SuspendLayout();
+            this.groupBox1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.DetailRange2)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.DetailRange1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.LabelInf)).BeginInit();
@@ -764,16 +768,18 @@
             // 
             // CollectionProcess
             // 
+            this.CollectionProcess.Controls.Add(this.groupBox2);
+            this.CollectionProcess.Controls.Add(this.groupBox1);
             this.CollectionProcess.Controls.Add(this.DetailRange2);
             this.CollectionProcess.Controls.Add(this.DetailRange1);
             this.CollectionProcess.Controls.Add(this.outboxProcess);
             this.CollectionProcess.Controls.Add(this.midboxProcess);
             this.CollectionProcess.Controls.Add(this.label25);
             this.CollectionProcess.Controls.Add(this.label24);
-            this.CollectionProcess.Controls.Add(this.button8);
-            this.CollectionProcess.Controls.Add(this.button7);
-            this.CollectionProcess.Controls.Add(this.button6);
-            this.CollectionProcess.Controls.Add(this.button5);
+            this.CollectionProcess.Controls.Add(this.AddOutBox);
+            this.CollectionProcess.Controls.Add(this.CutOutBox);
+            this.CollectionProcess.Controls.Add(this.CutMidBox);
+            this.CollectionProcess.Controls.Add(this.AddMidBox);
             this.CollectionProcess.Controls.Add(this.enterTextBox4);
             this.CollectionProcess.Controls.Add(this.enterTextBox3);
             this.CollectionProcess.Controls.Add(this.ButtonSetMidBox);
@@ -781,17 +787,12 @@
             this.CollectionProcess.Controls.Add(this.ButtonRecheckPass);
             this.CollectionProcess.Controls.Add(this.ButtonCollectPass);
             this.CollectionProcess.Controls.Add(this.checkBox2);
-            this.CollectionProcess.Controls.Add(this.radioButton7);
             this.CollectionProcess.Controls.Add(this.label23);
-            this.CollectionProcess.Controls.Add(this.radioButton5);
-            this.CollectionProcess.Controls.Add(this.radioButton6);
             this.CollectionProcess.Controls.Add(this.label22);
             this.CollectionProcess.Controls.Add(this.RecheckBarcode);
             this.CollectionProcess.Controls.Add(this.RecheckCuprodcode);
             this.CollectionProcess.Controls.Add(this.DetailRange);
             this.CollectionProcess.Controls.Add(this.label21);
-            this.CollectionProcess.Controls.Add(this.ManualCollection);
-            this.CollectionProcess.Controls.Add(this.AutoCollection);
             this.CollectionProcess.Controls.Add(this.Process_midboxcode);
             this.CollectionProcess.Controls.Add(this.Process_outboxcode);
             this.CollectionProcess.Controls.Add(this.CollectedCount);
@@ -808,6 +809,90 @@
             this.CollectionProcess.TabStop = false;
             this.CollectionProcess.Text = " 操作状态";
             // 
+            // groupBox2
+            // 
+            this.groupBox2.Controls.Add(this.radioButton7);
+            this.groupBox2.Controls.Add(this.radioButton6);
+            this.groupBox2.Controls.Add(this.radioButton5);
+            this.groupBox2.Location = new System.Drawing.Point(77, 177);
+            this.groupBox2.Name = "groupBox2";
+            this.groupBox2.Size = new System.Drawing.Size(215, 22);
+            this.groupBox2.TabIndex = 97;
+            this.groupBox2.TabStop = false;
+            // 
+            // radioButton7
+            // 
+            this.radioButton7.AutoSize = true;
+            this.radioButton7.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.radioButton7.Location = new System.Drawing.Point(161, 3);
+            this.radioButton7.Name = "radioButton7";
+            this.radioButton7.Size = new System.Drawing.Size(50, 21);
+            this.radioButton7.TabIndex = 99;
+            this.radioButton7.TabStop = true;
+            this.radioButton7.Text = "自动";
+            this.radioButton7.UseVisualStyleBackColor = true;
+            // 
+            // radioButton6
+            // 
+            this.radioButton6.AutoSize = true;
+            this.radioButton6.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.radioButton6.Location = new System.Drawing.Point(4, 3);
+            this.radioButton6.Name = "radioButton6";
+            this.radioButton6.Size = new System.Drawing.Size(74, 21);
+            this.radioButton6.TabIndex = 96;
+            this.radioButton6.TabStop = true;
+            this.radioButton6.Text = "前端采集";
+            this.radioButton6.UseVisualStyleBackColor = true;
+            // 
+            // radioButton5
+            // 
+            this.radioButton5.AutoSize = true;
+            this.radioButton5.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.radioButton5.Location = new System.Drawing.Point(84, 3);
+            this.radioButton5.Name = "radioButton5";
+            this.radioButton5.Size = new System.Drawing.Size(74, 21);
+            this.radioButton5.TabIndex = 97;
+            this.radioButton5.TabStop = true;
+            this.radioButton5.Text = "后端扫描";
+            this.radioButton5.UseVisualStyleBackColor = true;
+            // 
+            // groupBox1
+            // 
+            this.groupBox1.Controls.Add(this.ManualCollection);
+            this.groupBox1.Controls.Add(this.AutoCollection);
+            this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.groupBox1.Location = new System.Drawing.Point(5, 115);
+            this.groupBox1.Name = "groupBox1";
+            this.groupBox1.Size = new System.Drawing.Size(110, 22);
+            this.groupBox1.TabIndex = 97;
+            this.groupBox1.TabStop = false;
+            // 
+            // ManualCollection
+            // 
+            this.ManualCollection.AutoSize = true;
+            this.ManualCollection.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.ManualCollection.Location = new System.Drawing.Point(59, 3);
+            this.ManualCollection.Name = "ManualCollection";
+            this.ManualCollection.Size = new System.Drawing.Size(50, 21);
+            this.ManualCollection.TabIndex = 77;
+            this.ManualCollection.TabStop = true;
+            this.ManualCollection.Text = "手动";
+            this.ManualCollection.UseVisualStyleBackColor = true;
+            this.ManualCollection.CheckedChanged += new System.EventHandler(this.Collection_CheckedChanged);
+            // 
+            // AutoCollection
+            // 
+            this.AutoCollection.AutoSize = true;
+            this.AutoCollection.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.AutoCollection.Location = new System.Drawing.Point(5, 3);
+            this.AutoCollection.Name = "AutoCollection";
+            this.AutoCollection.Size = new System.Drawing.Size(50, 21);
+            this.AutoCollection.TabIndex = 76;
+            this.AutoCollection.TabStop = true;
+            this.AutoCollection.Text = "自动";
+            this.AutoCollection.UseVisualStyleBackColor = true;
+            this.AutoCollection.CheckedChanged += new System.EventHandler(this.Collection_CheckedChanged);
+            // 
             // DetailRange2
             // 
             this.DetailRange2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -868,49 +953,53 @@
             this.label24.TabIndex = 111;
             this.label24.Text = "进度";
             // 
-            // button8
-            // 
-            this.button8.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.button8.Location = new System.Drawing.Point(175, 85);
-            this.button8.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.button8.Name = "button8";
-            this.button8.Size = new System.Drawing.Size(25, 25);
-            this.button8.TabIndex = 110;
-            this.button8.Text = "+";
-            this.button8.UseVisualStyleBackColor = true;
-            // 
-            // button7
-            // 
-            this.button7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.button7.Location = new System.Drawing.Point(207, 85);
-            this.button7.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.button7.Name = "button7";
-            this.button7.Size = new System.Drawing.Size(25, 25);
-            this.button7.TabIndex = 109;
-            this.button7.Text = "-";
-            this.button7.UseVisualStyleBackColor = true;
-            // 
-            // button6
-            // 
-            this.button6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.button6.Location = new System.Drawing.Point(207, 35);
-            this.button6.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.button6.Name = "button6";
-            this.button6.Size = new System.Drawing.Size(25, 25);
-            this.button6.TabIndex = 108;
-            this.button6.Text = "-";
-            this.button6.UseVisualStyleBackColor = true;
-            // 
-            // button5
-            // 
-            this.button5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.button5.Location = new System.Drawing.Point(175, 35);
-            this.button5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.button5.Name = "button5";
-            this.button5.Size = new System.Drawing.Size(25, 25);
-            this.button5.TabIndex = 107;
-            this.button5.Text = "+";
-            this.button5.UseVisualStyleBackColor = true;
+            // AddOutBox
+            // 
+            this.AddOutBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.AddOutBox.Location = new System.Drawing.Point(175, 85);
+            this.AddOutBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.AddOutBox.Name = "AddOutBox";
+            this.AddOutBox.Size = new System.Drawing.Size(25, 25);
+            this.AddOutBox.TabIndex = 110;
+            this.AddOutBox.Text = "+";
+            this.AddOutBox.UseVisualStyleBackColor = true;
+            this.AddOutBox.Click += new System.EventHandler(this.AddCutBox_Click);
+            // 
+            // CutOutBox
+            // 
+            this.CutOutBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.CutOutBox.Location = new System.Drawing.Point(207, 85);
+            this.CutOutBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.CutOutBox.Name = "CutOutBox";
+            this.CutOutBox.Size = new System.Drawing.Size(25, 25);
+            this.CutOutBox.TabIndex = 109;
+            this.CutOutBox.Text = "-";
+            this.CutOutBox.UseVisualStyleBackColor = true;
+            this.CutOutBox.Click += new System.EventHandler(this.AddCutBox_Click);
+            // 
+            // CutMidBox
+            // 
+            this.CutMidBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.CutMidBox.Location = new System.Drawing.Point(207, 35);
+            this.CutMidBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.CutMidBox.Name = "CutMidBox";
+            this.CutMidBox.Size = new System.Drawing.Size(25, 25);
+            this.CutMidBox.TabIndex = 108;
+            this.CutMidBox.Text = "-";
+            this.CutMidBox.UseVisualStyleBackColor = true;
+            this.CutMidBox.Click += new System.EventHandler(this.AddCutBox_Click);
+            // 
+            // AddMidBox
+            // 
+            this.AddMidBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.AddMidBox.Location = new System.Drawing.Point(175, 35);
+            this.AddMidBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.AddMidBox.Name = "AddMidBox";
+            this.AddMidBox.Size = new System.Drawing.Size(25, 25);
+            this.AddMidBox.TabIndex = 107;
+            this.AddMidBox.Text = "+";
+            this.AddMidBox.UseVisualStyleBackColor = true;
+            this.AddMidBox.Click += new System.EventHandler(this.AddCutBox_Click);
             // 
             // enterTextBox4
             // 
@@ -970,6 +1059,7 @@
             this.ButtonRecheckPass.TabIndex = 102;
             this.ButtonRecheckPass.Text = "复核通过";
             this.ButtonRecheckPass.UseVisualStyleBackColor = true;
+            this.ButtonRecheckPass.Click += new System.EventHandler(this.ButtonRecheckPass_Click);
             // 
             // ButtonCollectPass
             // 
@@ -981,6 +1071,7 @@
             this.ButtonCollectPass.TabIndex = 101;
             this.ButtonCollectPass.Text = "采集通过";
             this.ButtonCollectPass.UseVisualStyleBackColor = true;
+            this.ButtonCollectPass.Click += new System.EventHandler(this.ButtonCollectPass_Click);
             // 
             // checkBox2
             // 
@@ -994,18 +1085,6 @@
             this.checkBox2.Text = "半自动模式";
             this.checkBox2.UseVisualStyleBackColor = true;
             // 
-            // radioButton7
-            // 
-            this.radioButton7.AutoSize = true;
-            this.radioButton7.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.radioButton7.Location = new System.Drawing.Point(235, 180);
-            this.radioButton7.Name = "radioButton7";
-            this.radioButton7.Size = new System.Drawing.Size(50, 21);
-            this.radioButton7.TabIndex = 99;
-            this.radioButton7.TabStop = true;
-            this.radioButton7.Text = "自动";
-            this.radioButton7.UseVisualStyleBackColor = true;
-            // 
             // label23
             // 
             this.label23.AutoSize = true;
@@ -1016,30 +1095,6 @@
             this.label23.TabIndex = 98;
             this.label23.Text = "手持扫描枪";
             // 
-            // radioButton5
-            // 
-            this.radioButton5.AutoSize = true;
-            this.radioButton5.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.radioButton5.Location = new System.Drawing.Point(158, 180);
-            this.radioButton5.Name = "radioButton5";
-            this.radioButton5.Size = new System.Drawing.Size(74, 21);
-            this.radioButton5.TabIndex = 97;
-            this.radioButton5.TabStop = true;
-            this.radioButton5.Text = "后端扫描";
-            this.radioButton5.UseVisualStyleBackColor = true;
-            // 
-            // radioButton6
-            // 
-            this.radioButton6.AutoSize = true;
-            this.radioButton6.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.radioButton6.Location = new System.Drawing.Point(78, 180);
-            this.radioButton6.Name = "radioButton6";
-            this.radioButton6.Size = new System.Drawing.Size(74, 21);
-            this.radioButton6.TabIndex = 96;
-            this.radioButton6.TabStop = true;
-            this.radioButton6.Text = "前端采集";
-            this.radioButton6.UseVisualStyleBackColor = true;
-            // 
             // label22
             // 
             this.label22.AutoSize = true;
@@ -1097,30 +1152,6 @@
             this.label21.TabIndex = 90;
             this.label21.Text = "-";
             // 
-            // ManualCollection
-            // 
-            this.ManualCollection.AutoSize = true;
-            this.ManualCollection.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.ManualCollection.Location = new System.Drawing.Point(64, 116);
-            this.ManualCollection.Name = "ManualCollection";
-            this.ManualCollection.Size = new System.Drawing.Size(50, 21);
-            this.ManualCollection.TabIndex = 77;
-            this.ManualCollection.TabStop = true;
-            this.ManualCollection.Text = "手动";
-            this.ManualCollection.UseVisualStyleBackColor = true;
-            // 
-            // AutoCollection
-            // 
-            this.AutoCollection.AutoSize = true;
-            this.AutoCollection.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.AutoCollection.Location = new System.Drawing.Point(8, 116);
-            this.AutoCollection.Name = "AutoCollection";
-            this.AutoCollection.Size = new System.Drawing.Size(50, 21);
-            this.AutoCollection.TabIndex = 76;
-            this.AutoCollection.TabStop = true;
-            this.AutoCollection.Text = "自动";
-            this.AutoCollection.UseVisualStyleBackColor = true;
-            // 
             // Process_midboxcode
             // 
             this.Process_midboxcode.AutoSize = true;
@@ -2232,6 +2263,10 @@
             ((System.ComponentModel.ISupportInitialize)(this.MidSource)).EndInit();
             this.CollectionProcess.ResumeLayout(false);
             this.CollectionProcess.PerformLayout();
+            this.groupBox2.ResumeLayout(false);
+            this.groupBox2.PerformLayout();
+            this.groupBox1.ResumeLayout(false);
+            this.groupBox1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.DetailRange2)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.DetailRange1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.LabelInf)).EndInit();
@@ -2401,10 +2436,10 @@
         private System.Windows.Forms.Button ButtonSetMidBox;
         private CustomControl.EnterTextBox enterTextBox3;
         private CustomControl.EnterTextBox enterTextBox4;
-        private System.Windows.Forms.Button button5;
-        private System.Windows.Forms.Button button6;
-        private System.Windows.Forms.Button button7;
-        private System.Windows.Forms.Button button8;
+        private System.Windows.Forms.Button AddMidBox;
+        private System.Windows.Forms.Button CutMidBox;
+        private System.Windows.Forms.Button CutOutBox;
+        private System.Windows.Forms.Button AddOutBox;
         private System.Windows.Forms.Label label24;
         private System.Windows.Forms.Label label25;
         private System.Windows.Forms.Label midboxProcess;
@@ -2443,5 +2478,7 @@
         private System.Windows.Forms.NumericUpDown DetailRange1;
         private CustomControl.EnterTextBox front_sg_separator;
         private System.Windows.Forms.Label label13;
+        private System.Windows.Forms.GroupBox groupBox1;
+        private System.Windows.Forms.GroupBox groupBox2;
     }
 }

+ 43 - 0
UAS-出货标签管理(吉利通)/UAS_出货标签管理.cs

@@ -160,6 +160,7 @@ namespace UAS_LabelMachine
             {
                 dgv.SortMode = DataGridViewColumnSortMode.NotSortable;
             }
+            AutoCollection.Checked = true;
             int ScreenWidth = Screen.GetWorkingArea(pt).Width;
             //设置获取当前屏幕大小自动全屏但是保留任务栏
             Rectangle ScreenArea = Screen.GetWorkingArea(this);
@@ -1612,5 +1613,47 @@ namespace UAS_LabelMachine
         {
 
         }
+
+        private void ButtonCollectPass_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void ButtonRecheckPass_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void Collection_CheckedChanged(object sender, EventArgs e)
+        {
+            ButtonCollectPass.Enabled = ManualCollection.Checked;
+            ButtonRecheckPass.Enabled = ManualCollection.Checked;
+            ButtonSetMidBox.Enabled = ManualCollection.Checked;
+            ButtonSetOutBox.Enabled = ManualCollection.Checked;
+        }
+
+        private void AddCutBox_Click(object sender, EventArgs e)
+        {
+            Button button = sender as Button;
+            switch (button.Name)
+            {
+                case "AddMidBox":
+                    Process_midboxcode.Text = (int.Parse(Process_midboxcode.Text) + 1).ToString();
+                    break;
+                case "CutMidBox":
+                    if (int.Parse(Process_midboxcode.Text) > 1)
+                        Process_midboxcode.Text = (int.Parse(Process_midboxcode.Text) - 1).ToString();
+                    break;
+                case "AddOutBox":
+                    Process_outboxcode.Text = (int.Parse(Process_outboxcode.Text) + 1).ToString();
+                    break;
+                case "CutOutBox":
+                    if (int.Parse(Process_outboxcode.Text) > 1)
+                        Process_outboxcode.Text = (int.Parse(Process_outboxcode.Text) - 1).ToString();
+                    break;
+                default:
+                    break;
+            }
+        }
     }
 }