From 4b0538e87beb83b9bf1e3a090b3af38a7c053528 Mon Sep 17 00:00:00 2001 From: "DESKTOP-999R8N3\\CJY" Date: Wed, 5 Apr 2023 15:48:26 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EB=A9=94=EC=9D=B8=ED=99=94=EB=A9=B4=20?= =?UTF-8?q?=EB=9D=BC=EB=B2=A8=20=EC=9C=84=EC=B9=98=20=EA=B4=80=EB=A0=A8=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- INT_PT002/Forms/FormMainDisplay2.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/INT_PT002/Forms/FormMainDisplay2.cs b/INT_PT002/Forms/FormMainDisplay2.cs index fe84f96..9679af8 100644 --- a/INT_PT002/Forms/FormMainDisplay2.cs +++ b/INT_PT002/Forms/FormMainDisplay2.cs @@ -475,6 +475,8 @@ namespace INT_PT002.Forms case Define.E_ProcessStatus._0_None: break; case Define.E_ProcessStatus._1_Initial: + for (int i = 0; i < this.CollectionLabelProgress.Count; i++) + this.UnselectLabelRefresh(i); this.SelectLabelRefresh(0); break; case Define.E_ProcessStatus._2_ProductEntry: From 681c0597f267024826f2bb1fd35611190ecea063 Mon Sep 17 00:00:00 2001 From: "DESKTOP-999R8N3\\CJY" Date: Wed, 5 Apr 2023 16:18:04 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EB=A9=94=EC=9D=B8=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20-=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=99=84?= =?UTF-8?q?=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- INT_PT002/Forms/FormMainDisplay2.Designer.cs | 266 +++++++++++-------- INT_PT002/Forms/FormMainDisplay2.cs | 64 ++++- 2 files changed, 204 insertions(+), 126 deletions(-) diff --git a/INT_PT002/Forms/FormMainDisplay2.Designer.cs b/INT_PT002/Forms/FormMainDisplay2.Designer.cs index a105338..ebb9472 100644 --- a/INT_PT002/Forms/FormMainDisplay2.Designer.cs +++ b/INT_PT002/Forms/FormMainDisplay2.Designer.cs @@ -30,6 +30,15 @@ { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMainDisplay2)); this.smartForm1 = new SmartX.SmartForm(); + this.smartButton5 = new SmartX.SmartButton(); + this.pictureBoxProgress8Selected = new System.Windows.Forms.PictureBox(); + this.pictureBoxProgress7Selected = new System.Windows.Forms.PictureBox(); + this.pictureBoxProgress6Selected = new System.Windows.Forms.PictureBox(); + this.pictureBoxProgress4Selected = new System.Windows.Forms.PictureBox(); + this.pictureBoxProgress3Selected = new System.Windows.Forms.PictureBox(); + this.pictureBoxProgress2Selected = new System.Windows.Forms.PictureBox(); + this.pictureBoxProgress1Selected = new System.Windows.Forms.PictureBox(); + this.buttonRecipeNo = new SmartX.SmartButton(); this.pictureBoxProgress0Selected = new System.Windows.Forms.PictureBox(); this.labelCommunicationStatus = new SmartX.SmartLabel(); this.labelUserLevel = new SmartX.SmartLabel(); @@ -130,14 +139,6 @@ this.smartTimerAlarm = new SmartX.SmartTimer(); this.smartTimerMessageShow = new SmartX.SmartTimer(); this.smartTimerLogin = new SmartX.SmartTimer(); - this.buttonRecipeNo = new SmartX.SmartButton(); - this.pictureBoxProgress1Selected = new System.Windows.Forms.PictureBox(); - this.pictureBoxProgress2Selected = new System.Windows.Forms.PictureBox(); - this.pictureBoxProgress3Selected = new System.Windows.Forms.PictureBox(); - this.pictureBoxProgress4Selected = new System.Windows.Forms.PictureBox(); - this.pictureBoxProgress6Selected = new System.Windows.Forms.PictureBox(); - this.pictureBoxProgress7Selected = new System.Windows.Forms.PictureBox(); - this.pictureBoxProgress8Selected = new System.Windows.Forms.PictureBox(); this.smartForm1.SuspendLayout(); this.smartGroupBox1.SuspendLayout(); this.SuspendLayout(); @@ -148,6 +149,7 @@ this.smartForm1.BackGroundFillStyle = SmartXUIBase.SmartUIControlFormBase.BackGroundFillStyles.UseBackImage; this.smartForm1.BackImage = ((System.Drawing.Image)(resources.GetObject("smartForm1.BackImage"))); this.smartForm1.CenterLocation = false; + this.smartForm1.Controls.Add(this.smartButton5); this.smartForm1.Controls.Add(this.pictureBoxProgress8Selected); this.smartForm1.Controls.Add(this.pictureBoxProgress7Selected); this.smartForm1.Controls.Add(this.pictureBoxProgress6Selected); @@ -209,13 +211,6 @@ this.smartForm1.Controls.Add(this.pictureBoxProgress2); this.smartForm1.Controls.Add(this.pictureBoxProgress1); this.smartForm1.Controls.Add(this.pictureBoxProgress8); - this.smartForm1.Controls.Add(this.smartLabel31); - this.smartForm1.Controls.Add(this.smartLabel30); - this.smartForm1.Controls.Add(this.smartLabel29); - this.smartForm1.Controls.Add(this.smartLabel27); - this.smartForm1.Controls.Add(this.smartLabel26); - this.smartForm1.Controls.Add(this.smartLabel25); - this.smartForm1.Controls.Add(this.smartLabel24); this.smartForm1.Controls.Add(this.labelProgress8); this.smartForm1.Controls.Add(this.labelProgress7); this.smartForm1.Controls.Add(this.labelProgress6); @@ -252,6 +247,13 @@ this.smartForm1.Controls.Add(this.buttonClear); this.smartForm1.Controls.Add(this.buttonMenu); this.smartForm1.Controls.Add(this.buttonDisplay); + this.smartForm1.Controls.Add(this.smartLabel24); + this.smartForm1.Controls.Add(this.smartLabel25); + this.smartForm1.Controls.Add(this.smartLabel26); + this.smartForm1.Controls.Add(this.smartLabel27); + this.smartForm1.Controls.Add(this.smartLabel29); + this.smartForm1.Controls.Add(this.smartLabel30); + this.smartForm1.Controls.Add(this.smartLabel31); this.smartForm1.GradationColorBottom = System.Drawing.Color.Gray; this.smartForm1.GradationColorTop = System.Drawing.Color.White; this.smartForm1.LCDDirection = SmartXUIBase.SmartUIControlFormBase.LCDDIRECTIONS.HORIZONTAL; @@ -265,6 +267,140 @@ this.smartForm1.SpecialFunctionClickPointSize = 100; this.smartForm1.UseMainMenu = false; // + // smartButton5 + // + this.smartButton5.BackGround = this.smartForm1; + this.smartButton5.BackGroundColor = System.Drawing.Color.LightBlue; + this.smartButton5.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); + this.smartButton5.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); + this.smartButton5.ButtonImageAutoSize = true; + this.smartButton5.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; + this.smartButton5.ButtonText = "smartButton1"; + this.smartButton5.ColorKeySamplePosition = new System.Drawing.Point(0, 0); + this.smartButton5.GroupID = 0; + this.smartButton5.ImageDisable = null; + this.smartButton5.ImageDown = null; + this.smartButton5.ImageUp = null; + this.smartButton5.Location = new System.Drawing.Point(917, 466); + this.smartButton5.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; + this.smartButton5.Name = "smartButton5"; + this.smartButton5.NestedClickEventPrevent = false; + this.smartButton5.OutlinePixel = 2; + this.smartButton5.OverlapOptimize = true; + this.smartButton5.RepeatInterval = 200; + this.smartButton5.RepeatIntervalAccelerate = null; + this.smartButton5.RoundSize = 10; + this.smartButton5.SafeInterval = 200; + this.smartButton5.Size = new System.Drawing.Size(100, 43); + this.smartButton5.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; + this.smartButton5.TabIndex = 310; + this.smartButton5.Text = null; + this.smartButton5.TextColor = System.Drawing.Color.White; + this.smartButton5.TextColorDisable = System.Drawing.Color.Gray; + this.smartButton5.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255))))); + this.smartButton5.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; + this.smartButton5.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; + this.smartButton5.Click += new System.EventHandler(this.smartButton5_Click); + // + // pictureBoxProgress8Selected + // + this.pictureBoxProgress8Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); + this.pictureBoxProgress8Selected.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxProgress8Selected.Image"))); + this.pictureBoxProgress8Selected.Location = new System.Drawing.Point(55, 410); + this.pictureBoxProgress8Selected.Name = "pictureBoxProgress8Selected"; + this.pictureBoxProgress8Selected.Size = new System.Drawing.Size(150, 90); + this.pictureBoxProgress8Selected.Visible = false; + // + // pictureBoxProgress7Selected + // + this.pictureBoxProgress7Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); + this.pictureBoxProgress7Selected.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxProgress7Selected.Image"))); + this.pictureBoxProgress7Selected.Location = new System.Drawing.Point(274, 410); + this.pictureBoxProgress7Selected.Name = "pictureBoxProgress7Selected"; + this.pictureBoxProgress7Selected.Size = new System.Drawing.Size(150, 90); + this.pictureBoxProgress7Selected.Visible = false; + // + // pictureBoxProgress6Selected + // + this.pictureBoxProgress6Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); + this.pictureBoxProgress6Selected.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxProgress6Selected.Image"))); + this.pictureBoxProgress6Selected.Location = new System.Drawing.Point(493, 410); + this.pictureBoxProgress6Selected.Name = "pictureBoxProgress6Selected"; + this.pictureBoxProgress6Selected.Size = new System.Drawing.Size(150, 90); + this.pictureBoxProgress6Selected.Visible = false; + // + // pictureBoxProgress4Selected + // + this.pictureBoxProgress4Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); + this.pictureBoxProgress4Selected.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxProgress4Selected.Image"))); + this.pictureBoxProgress4Selected.Location = new System.Drawing.Point(712, 410); + this.pictureBoxProgress4Selected.Name = "pictureBoxProgress4Selected"; + this.pictureBoxProgress4Selected.Size = new System.Drawing.Size(150, 90); + this.pictureBoxProgress4Selected.Visible = false; + // + // pictureBoxProgress3Selected + // + this.pictureBoxProgress3Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); + this.pictureBoxProgress3Selected.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxProgress3Selected.Image"))); + this.pictureBoxProgress3Selected.Location = new System.Drawing.Point(712, 246); + this.pictureBoxProgress3Selected.Name = "pictureBoxProgress3Selected"; + this.pictureBoxProgress3Selected.Size = new System.Drawing.Size(150, 90); + this.pictureBoxProgress3Selected.Visible = false; + // + // pictureBoxProgress2Selected + // + this.pictureBoxProgress2Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); + this.pictureBoxProgress2Selected.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxProgress2Selected.Image"))); + this.pictureBoxProgress2Selected.Location = new System.Drawing.Point(493, 247); + this.pictureBoxProgress2Selected.Name = "pictureBoxProgress2Selected"; + this.pictureBoxProgress2Selected.Size = new System.Drawing.Size(150, 90); + this.pictureBoxProgress2Selected.Visible = false; + // + // pictureBoxProgress1Selected + // + this.pictureBoxProgress1Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); + this.pictureBoxProgress1Selected.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxProgress1Selected.Image"))); + this.pictureBoxProgress1Selected.Location = new System.Drawing.Point(274, 246); + this.pictureBoxProgress1Selected.Name = "pictureBoxProgress1Selected"; + this.pictureBoxProgress1Selected.Size = new System.Drawing.Size(150, 90); + this.pictureBoxProgress1Selected.Visible = false; + // + // buttonRecipeNo + // + this.buttonRecipeNo.BackGround = this.smartForm1; + this.buttonRecipeNo.BackGroundColor = System.Drawing.Color.Gray; + this.buttonRecipeNo.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(95)))), ((int)(((byte)(196)))), ((int)(((byte)(188))))); + this.buttonRecipeNo.ButtonDownColor = System.Drawing.Color.DarkGray; + this.buttonRecipeNo.ButtonImageAutoSize = true; + this.buttonRecipeNo.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; + this.buttonRecipeNo.ButtonText = "1"; + this.buttonRecipeNo.ColorKeySamplePosition = new System.Drawing.Point(0, 0); + this.buttonRecipeNo.Font = new System.Drawing.Font("Arial", 20F, System.Drawing.FontStyle.Bold); + this.buttonRecipeNo.GroupID = 0; + this.buttonRecipeNo.ImageDisable = null; + this.buttonRecipeNo.ImageDown = null; + this.buttonRecipeNo.ImageUp = null; + this.buttonRecipeNo.Location = new System.Drawing.Point(21, 88); + this.buttonRecipeNo.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; + this.buttonRecipeNo.Name = "buttonRecipeNo"; + this.buttonRecipeNo.NestedClickEventPrevent = false; + this.buttonRecipeNo.OutlinePixel = 2; + this.buttonRecipeNo.OverlapOptimize = true; + this.buttonRecipeNo.RepeatInterval = 200; + this.buttonRecipeNo.RepeatIntervalAccelerate = null; + this.buttonRecipeNo.RoundSize = 30; + this.buttonRecipeNo.SafeInterval = 200; + this.buttonRecipeNo.Size = new System.Drawing.Size(100, 55); + this.buttonRecipeNo.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; + this.buttonRecipeNo.TabIndex = 295; + this.buttonRecipeNo.Text = null; + this.buttonRecipeNo.TextColor = System.Drawing.Color.White; + this.buttonRecipeNo.TextColorDisable = System.Drawing.Color.Gray; + this.buttonRecipeNo.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255))))); + this.buttonRecipeNo.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; + this.buttonRecipeNo.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; + this.buttonRecipeNo.Click += new System.EventHandler(this.buttonProductNo_Click); + // // pictureBoxProgress0Selected // this.pictureBoxProgress0Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); @@ -2434,105 +2570,6 @@ this.smartTimerLogin.TimeFormStringSeparator = ":"; this.smartTimerLogin.Tick += new System.EventHandler(this.smartTimerLogin_Tick); // - // buttonRecipeNo - // - this.buttonRecipeNo.BackGround = this.smartForm1; - this.buttonRecipeNo.BackGroundColor = System.Drawing.Color.Gray; - this.buttonRecipeNo.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(95)))), ((int)(((byte)(196)))), ((int)(((byte)(188))))); - this.buttonRecipeNo.ButtonDownColor = System.Drawing.Color.DarkGray; - this.buttonRecipeNo.ButtonImageAutoSize = true; - this.buttonRecipeNo.ButtonStyle = SmartX.SmartButton.ButtonStyles.FlatRound; - this.buttonRecipeNo.ButtonText = "1"; - this.buttonRecipeNo.ColorKeySamplePosition = new System.Drawing.Point(0, 0); - this.buttonRecipeNo.Font = new System.Drawing.Font("Arial", 20F, System.Drawing.FontStyle.Bold); - this.buttonRecipeNo.GroupID = 0; - this.buttonRecipeNo.ImageDisable = null; - this.buttonRecipeNo.ImageDown = null; - this.buttonRecipeNo.ImageUp = null; - this.buttonRecipeNo.Location = new System.Drawing.Point(21, 88); - this.buttonRecipeNo.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; - this.buttonRecipeNo.Name = "buttonRecipeNo"; - this.buttonRecipeNo.NestedClickEventPrevent = false; - this.buttonRecipeNo.OutlinePixel = 2; - this.buttonRecipeNo.OverlapOptimize = true; - this.buttonRecipeNo.RepeatInterval = 200; - this.buttonRecipeNo.RepeatIntervalAccelerate = null; - this.buttonRecipeNo.RoundSize = 30; - this.buttonRecipeNo.SafeInterval = 200; - this.buttonRecipeNo.Size = new System.Drawing.Size(100, 55); - this.buttonRecipeNo.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; - this.buttonRecipeNo.TabIndex = 295; - this.buttonRecipeNo.Text = null; - this.buttonRecipeNo.TextColor = System.Drawing.Color.White; - this.buttonRecipeNo.TextColorDisable = System.Drawing.Color.Gray; - this.buttonRecipeNo.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255))))); - this.buttonRecipeNo.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; - this.buttonRecipeNo.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; - this.buttonRecipeNo.Click += new System.EventHandler(this.buttonProductNo_Click); - // - // pictureBoxProgress1Selected - // - this.pictureBoxProgress1Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); - this.pictureBoxProgress1Selected.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxProgress1Selected.Image"))); - this.pictureBoxProgress1Selected.Location = new System.Drawing.Point(274, 246); - this.pictureBoxProgress1Selected.Name = "pictureBoxProgress1Selected"; - this.pictureBoxProgress1Selected.Size = new System.Drawing.Size(150, 90); - this.pictureBoxProgress1Selected.Visible = false; - // - // pictureBoxProgress2Selected - // - this.pictureBoxProgress2Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); - this.pictureBoxProgress2Selected.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxProgress2Selected.Image"))); - this.pictureBoxProgress2Selected.Location = new System.Drawing.Point(493, 247); - this.pictureBoxProgress2Selected.Name = "pictureBoxProgress2Selected"; - this.pictureBoxProgress2Selected.Size = new System.Drawing.Size(150, 90); - this.pictureBoxProgress2Selected.Visible = false; - // - // pictureBoxProgress3Selected - // - this.pictureBoxProgress3Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); - this.pictureBoxProgress3Selected.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxProgress3Selected.Image"))); - this.pictureBoxProgress3Selected.Location = new System.Drawing.Point(712, 246); - this.pictureBoxProgress3Selected.Name = "pictureBoxProgress3Selected"; - this.pictureBoxProgress3Selected.Size = new System.Drawing.Size(150, 90); - this.pictureBoxProgress3Selected.Visible = false; - // - // pictureBoxProgress4Selected - // - this.pictureBoxProgress4Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); - this.pictureBoxProgress4Selected.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxProgress4Selected.Image"))); - this.pictureBoxProgress4Selected.Location = new System.Drawing.Point(712, 410); - this.pictureBoxProgress4Selected.Name = "pictureBoxProgress4Selected"; - this.pictureBoxProgress4Selected.Size = new System.Drawing.Size(150, 90); - this.pictureBoxProgress4Selected.Visible = false; - // - // pictureBoxProgress6Selected - // - this.pictureBoxProgress6Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); - this.pictureBoxProgress6Selected.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxProgress6Selected.Image"))); - this.pictureBoxProgress6Selected.Location = new System.Drawing.Point(493, 410); - this.pictureBoxProgress6Selected.Name = "pictureBoxProgress6Selected"; - this.pictureBoxProgress6Selected.Size = new System.Drawing.Size(150, 90); - this.pictureBoxProgress6Selected.Visible = false; - // - // pictureBoxProgress7Selected - // - this.pictureBoxProgress7Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); - this.pictureBoxProgress7Selected.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxProgress7Selected.Image"))); - this.pictureBoxProgress7Selected.Location = new System.Drawing.Point(274, 410); - this.pictureBoxProgress7Selected.Name = "pictureBoxProgress7Selected"; - this.pictureBoxProgress7Selected.Size = new System.Drawing.Size(150, 90); - this.pictureBoxProgress7Selected.Visible = false; - // - // pictureBoxProgress8Selected - // - this.pictureBoxProgress8Selected.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38))))); - this.pictureBoxProgress8Selected.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxProgress8Selected.Image"))); - this.pictureBoxProgress8Selected.Location = new System.Drawing.Point(55, 410); - this.pictureBoxProgress8Selected.Name = "pictureBoxProgress8Selected"; - this.pictureBoxProgress8Selected.Size = new System.Drawing.Size(150, 90); - this.pictureBoxProgress8Selected.Visible = false; - // // FormMainDisplay2 // this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); @@ -2661,5 +2698,6 @@ private System.Windows.Forms.PictureBox pictureBoxProgress3Selected; private System.Windows.Forms.PictureBox pictureBoxProgress2Selected; private System.Windows.Forms.PictureBox pictureBoxProgress1Selected; + private SmartX.SmartButton smartButton5; } } \ No newline at end of file diff --git a/INT_PT002/Forms/FormMainDisplay2.cs b/INT_PT002/Forms/FormMainDisplay2.cs index 9679af8..2d5b691 100644 --- a/INT_PT002/Forms/FormMainDisplay2.cs +++ b/INT_PT002/Forms/FormMainDisplay2.cs @@ -24,10 +24,7 @@ namespace INT_PT002.Forms private string MessageBoxRange; - private int LabelProcess0LocationX; - private int LabelProcess0LocationY; - private int LabelProcess0_1LocationX; - private int LabelProcess0_1LocationY; + int testIndex; private Color ColorProgressOn; private Size SizeProgressOn; @@ -39,6 +36,7 @@ namespace INT_PT002.Forms private Color ColorSensorNormal; private Color ColorSensorError; + private Collection CollectionLabelPoint; private Collection CollectionLabelResult; private Collection CollectionLabelProgress; private Collection CollectionLabelProgress2; @@ -77,6 +75,8 @@ namespace INT_PT002.Forms #region Method private void DefaultSetting() { + int testIndex = 0; + this.FlagIgnoreCNT = 0; this.MessageBoxRange = ""; @@ -115,6 +115,12 @@ namespace INT_PT002.Forms this.CollectionLabelProgress.Add(this.labelProgress7); this.CollectionLabelProgress.Add(this.labelProgress8); + // 기존 배경 라벨 사이즈 저장 + this.CollectionLabelPoint = new Collection(); + this.CollectionLabelPoint.Clear(); + for (int i = 0; i < this.CollectionLabelProgress.Count; i++) + this.CollectionLabelPoint.Add(new Point(this.CollectionLabelProgress[i].Location.X, this.CollectionLabelProgress[i].Location.Y)); + // 문구가 적힌 라벨 this.CollectionLabelProgress2 = new Collection(); this.CollectionLabelProgress2.Clear(); @@ -196,11 +202,6 @@ namespace INT_PT002.Forms this.ChildControl.BringToFront(); this.ChildControl.Visible = false; - this.LabelProcess0LocationX = this.CollectionLabelProgress[0].Location.X; - this.LabelProcess0LocationY = this.CollectionLabelProgress[0].Location.Y; - this.LabelProcess0_1LocationX = this.CollectionLabelProgress2[0].Location.X; - this.LabelProcess0_1LocationY = this.CollectionLabelProgress2[0].Location.Y; - this.buttonRecipeNo.ButtonText = this.ParentForm.SystemConfig.RECIPE_NUMBER.ToString(); this.UpdateDisplayUser(this.ParentForm.CurrentSystemStatus.CurrentUser); } @@ -250,13 +251,13 @@ namespace INT_PT002.Forms this.CollectionLabelProgress[index].RoundRectFillColor = this.ColorProgressOn; // 문구가 적히는 label this.CollectionLabelProgress2[index].BackGroundColor = this.ColorProgressOn; - + this.CollectionPictureBoxSelected[index].Visible = true; this.CollectionPictureBoxSelected[index].BringToFront(); } private void UnselectLabelRefresh(int index) { - this.CollectionLabelProgress[index].Location = new Point(this.CollectionLabelProgress[index].Location.X + 17, this.CollectionLabelProgress[index].Location.Y + 15); + this.CollectionLabelProgress[index].Location = this.CollectionLabelPoint[index]; this.CollectionLabelProgress[index].Size = this.SizeProgressOff; this.CollectionLabelProgress[index].RoundRectFillColor = this.ColorProgressOff; // 문구가 적히는 label @@ -476,7 +477,8 @@ namespace INT_PT002.Forms break; case Define.E_ProcessStatus._1_Initial: for (int i = 0; i < this.CollectionLabelProgress.Count; i++) - this.UnselectLabelRefresh(i); + this.CollectionLabelProgress[i].Location = this.CollectionLabelPoint[i]; + this.UnselectLabelRefresh(this.CollectionLabelProgress.Count - 1); this.SelectLabelRefresh(0); break; case Define.E_ProcessStatus._2_ProductEntry: @@ -941,5 +943,43 @@ namespace INT_PT002.Forms this.labelAlarm.Location = new Point(3, 27); } } + + private void smartButton5_Click(object sender, EventArgs e) + { + switch (this.testIndex) + { + case 0: + this.UpdateProcessStatusDisplay(Define.E_ProcessStatus._1_Initial); + break; + case 1: + this.UpdateProcessStatusDisplay(Define.E_ProcessStatus._2_ProductEntry); + break; + case 2: + this.UpdateProcessStatusDisplay(Define.E_ProcessStatus._3_ChamberConbined); + break; + case 3: + this.UpdateProcessStatusDisplay(Define.E_ProcessStatus._4_VacuumStart); + break; + case 4: + this.UpdateProcessStatusDisplay(Define.E_ProcessStatus._5_VacuumHold); + break; + case 5: + this.UpdateProcessStatusDisplay(Define.E_ProcessStatus._7_VacuumBreak); + break; + case 6: + this.UpdateProcessStatusDisplay(Define.E_ProcessStatus._8_ChamberSeparation); + break; + case 7: + this.UpdateProcessStatusDisplay(Define.E_ProcessStatus._9_ProductRelease); + break; + default: + break; + } + + if (this.testIndex >= 7) + this.testIndex = 0; + else + this.testIndex++; + } } } \ No newline at end of file