From de93e4cda1b8718f33b0d6d7b34026d87bf205e3 Mon Sep 17 00:00:00 2001 From: CJY Date: Wed, 11 Mar 2026 13:53:55 +0900 Subject: [PATCH] =?UTF-8?q?Log,=20=EB=A9=94=EC=9D=B8=ED=99=94=EB=A9=B4=20L?= =?UTF-8?q?ist=20-=20SmartListBox=20=EC=84=A0=ED=83=9D=20=EC=8B=9C,=20?= =?UTF-8?q?=ED=95=9C=20=EC=A4=84=20=EC=A0=84=EB=B6=80=20=EC=84=A0=ED=83=9D?= =?UTF-8?q?=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- INT_LKD_PTB6_DW.suo | Bin 82944 -> 90624 bytes .../Log/ControlMenuLogAlarm.Designer.cs | 28 +-- .../Controls/Log/ControlMenuLogAlarm.cs | 41 ++--- .../Log/ControlMenuLogHistory.Designer.cs | 40 ++-- .../Controls/Log/ControlMenuLogHistory.cs | 80 ++------ .../Log/ControlMenuLogInspection.Designer.cs | 68 +++---- .../Controls/Log/ControlMenuLogInspection.cs | 22 +++ .../ControlMainDisplay_3.Designer.cs | 108 +++++------ .../MainDisplay/ControlMainDisplay_3.cs | 174 +++++++----------- 9 files changed, 247 insertions(+), 314 deletions(-) diff --git a/INT_LKD_PTB6_DW.suo b/INT_LKD_PTB6_DW.suo index 7c3c948e54d4a6bf5355530771fa3c3214226fd8..50c1b603493a2d204f1b724e886afbef991ea102 100644 GIT binary patch delta 11738 zcmcgyeNL= zrd{hD){lGdx%-^6_da{?bI!ig_f%lt#lYe20R2uu5H=ykCnhGKFTmma6+ZMM9znDt zHY0W*IuIU2BU}i0F?{q?$KRt~{+I<|jqnic)xI0XLh;swz@8@HeQg4a=(MmW@ZWXR zx7h#n-3}-SieN4{a&Rtm2N_rv{2=H7t@!eCP%qRZ>Y*;US*kb}ob8}D`>@abh(1Ky z_2{)vK00gZv9Wp2)YnH|g#$BOP^`O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collection m_ColPassCNT; - private Collection m_ColLeakCNT; + private Collection m_CollectionListBox; + private Collection m_CollectionPassCNT; + private Collection m_CollectionLeakCNT; #endregion #region Constructor @@ -43,50 +43,50 @@ namespace INT_LKD_PTB6_DW.Controls.MainDisplay set { this.m_ParentForm = value; } } - public Collection ColListBox + public Collection CollectionListBox { - get { return this.m_ColListBox; } - set { this.m_ColListBox = value; } + get { return this.m_CollectionListBox; } + set { this.m_CollectionListBox = value; } } - public Collection ColPassCNT + public Collection CollectionPassCNT { - get { return this.m_ColPassCNT; } - set { this.m_ColPassCNT = value; } + get { return this.m_CollectionPassCNT; } + set { this.m_CollectionPassCNT = value; } } - public Collection ColLeakCNT + public Collection CollectionLeakCNT { - get { return this.m_ColLeakCNT; } - set { this.m_ColLeakCNT = value; } + get { return this.m_CollectionLeakCNT; } + set { this.m_CollectionLeakCNT = value; } } #endregion #region Method private void Initialize() { - this.ColListBox = new Collection(); - this.ColListBox.Add(this.listBoxTime); - this.ColListBox.Add(this.listBoxLane1); - this.ColListBox.Add(this.listBoxLane2); - this.ColListBox.Add(this.listBoxLane3); - this.ColListBox.Add(this.listBoxLane4); - this.ColListBox.Add(this.listBoxLane5); - this.ColListBox.Add(this.listBoxLane6); + this.CollectionListBox = new Collection(); + this.CollectionListBox.Add(this.listBoxTime); + this.CollectionListBox.Add(this.listBoxLane1); + this.CollectionListBox.Add(this.listBoxLane2); + this.CollectionListBox.Add(this.listBoxLane3); + this.CollectionListBox.Add(this.listBoxLane4); + this.CollectionListBox.Add(this.listBoxLane5); + this.CollectionListBox.Add(this.listBoxLane6); - this.ColPassCNT = new Collection(); - this.ColPassCNT.Add(this.labelPassCNT1); - this.ColPassCNT.Add(this.labelPassCNT2); - this.ColPassCNT.Add(this.labelPassCNT3); - this.ColPassCNT.Add(this.labelPassCNT4); - this.ColPassCNT.Add(this.labelPassCNT5); - this.ColPassCNT.Add(this.labelPassCNT6); + this.CollectionPassCNT = new Collection(); + this.CollectionPassCNT.Add(this.labelPassCNT1); + this.CollectionPassCNT.Add(this.labelPassCNT2); + this.CollectionPassCNT.Add(this.labelPassCNT3); + this.CollectionPassCNT.Add(this.labelPassCNT4); + this.CollectionPassCNT.Add(this.labelPassCNT5); + this.CollectionPassCNT.Add(this.labelPassCNT6); - this.ColLeakCNT = new Collection(); - this.ColLeakCNT.Add(this.labelLeakCNT1); - this.ColLeakCNT.Add(this.labelLeakCNT2); - this.ColLeakCNT.Add(this.labelLeakCNT3); - this.ColLeakCNT.Add(this.labelLeakCNT4); - this.ColLeakCNT.Add(this.labelLeakCNT5); - this.ColLeakCNT.Add(this.labelLeakCNT6); + this.CollectionLeakCNT = new Collection(); + this.CollectionLeakCNT.Add(this.labelLeakCNT1); + this.CollectionLeakCNT.Add(this.labelLeakCNT2); + this.CollectionLeakCNT.Add(this.labelLeakCNT3); + this.CollectionLeakCNT.Add(this.labelLeakCNT4); + this.CollectionLeakCNT.Add(this.labelLeakCNT5); + this.CollectionLeakCNT.Add(this.labelLeakCNT6); this.Clear(); } @@ -196,16 +196,10 @@ namespace INT_LKD_PTB6_DW.Controls.MainDisplay items[1] = ""; items[2] = "0"; - - if (this.listBoxTime.ItemCount >= 10) + if (this.listBoxTime.ItemCount > 10) { - this.listBoxTime.RemoveItem(0); - this.listBoxLane1.RemoveItem(0); - this.listBoxLane2.RemoveItem(0); - this.listBoxLane3.RemoveItem(0); - this.listBoxLane4.RemoveItem(0); - this.listBoxLane5.RemoveItem(0); - this.listBoxLane6.RemoveItem(0); + for (int i = 0; i < this.CollectionListBox.Count; i++) + this.CollectionListBox[i].RemoveItem(0); } this.listBoxTime.AddItem(items); @@ -224,13 +218,13 @@ namespace INT_LKD_PTB6_DW.Controls.MainDisplay { // Pass Count value = datas[i].CounterData.PassCNT.ToString(); - if (this.ColPassCNT[i].Text != value) - this.ColPassCNT[i].Text = value; + if (this.CollectionPassCNT[i].Text != value) + this.CollectionPassCNT[i].Text = value; // Leak Count value = datas[i].CounterData.LeakCNT.ToString(); - if (this.ColLeakCNT[i].Text != value) - this.ColLeakCNT[i].Text = value; + if (this.CollectionLeakCNT[i].Text != value) + this.CollectionLeakCNT[i].Text = value; totalPass += datas[i].CounterData.PassCNT; totalLeak += datas[i].CounterData.LeakCNT; @@ -245,9 +239,25 @@ namespace INT_LKD_PTB6_DW.Controls.MainDisplay this.labelLeakTotalCNT.Text = value; } + private void SelectLaneTextColor(int selectItemIndex) + { + for (int i = 0; i < this.CollectionListBox.Count; i++) + { + this.CollectionListBox[i].SelectedIndexChanged -= new EventHandler(this.listBox_SelectedIndexChanged); + + this.CollectionListBox[i].SelectItemIndex = selectItemIndex; + if (this.CollectionListBox[i].GetItemColumnText(selectItemIndex, 0) == "Leak") + this.CollectionListBox[i].SelectTextColor = Color.Red; + else + this.CollectionListBox[i].SelectTextColor = Color.Green; + + this.CollectionListBox[i].SelectedIndexChanged += new EventHandler(this.listBox_SelectedIndexChanged); + } + } + public void Clear() { - foreach (SmartListBox list in this.ColListBox) + foreach (SmartListBox list in this.CollectionListBox) list.ClearAll(); for (int i = 0; i < this.ParentForm.ParentForm.SystemConfig.EQUIPMENT_LANE; i++) @@ -269,68 +279,14 @@ namespace INT_LKD_PTB6_DW.Controls.MainDisplay this.ParentForm.UpdateDisplayListChange(false); } - private void listBoxTime_Click(object sender, EventArgs e) + private void listBox_SelectedIndexChanged(object sender, EventArgs e) { - this.listBoxLane1.SelectItemIndex = this.listBoxTime.SelectItemIndex; - this.listBoxLane2.SelectItemIndex = this.listBoxTime.SelectItemIndex; - this.listBoxLane3.SelectItemIndex = this.listBoxTime.SelectItemIndex; - this.listBoxLane4.SelectItemIndex = this.listBoxTime.SelectItemIndex; - this.listBoxLane5.SelectItemIndex = this.listBoxTime.SelectItemIndex; - this.listBoxLane6.SelectItemIndex = this.listBoxTime.SelectItemIndex; - } - private void listBoxLane1_Click(object sender, EventArgs e) - { - this.listBoxTime.SelectItemIndex = this.listBoxLane1.SelectItemIndex; - this.listBoxLane2.SelectItemIndex = this.listBoxLane1.SelectItemIndex; - this.listBoxLane3.SelectItemIndex = this.listBoxLane1.SelectItemIndex; - this.listBoxLane4.SelectItemIndex = this.listBoxLane1.SelectItemIndex; - this.listBoxLane5.SelectItemIndex = this.listBoxLane1.SelectItemIndex; - this.listBoxLane6.SelectItemIndex = this.listBoxLane1.SelectItemIndex; - } - private void listBoxLane2_Click(object sender, EventArgs e) - { - this.listBoxTime.SelectItemIndex = this.listBoxLane2.SelectItemIndex; - this.listBoxLane1.SelectItemIndex = this.listBoxLane2.SelectItemIndex; - this.listBoxLane3.SelectItemIndex = this.listBoxLane2.SelectItemIndex; - this.listBoxLane4.SelectItemIndex = this.listBoxLane2.SelectItemIndex; - this.listBoxLane5.SelectItemIndex = this.listBoxLane2.SelectItemIndex; - this.listBoxLane6.SelectItemIndex = this.listBoxLane2.SelectItemIndex; - } - private void listBoxLane3_Click(object sender, EventArgs e) - { - this.listBoxTime.SelectItemIndex = this.listBoxLane3.SelectItemIndex; - this.listBoxLane1.SelectItemIndex = this.listBoxLane3.SelectItemIndex; - this.listBoxLane2.SelectItemIndex = this.listBoxLane3.SelectItemIndex; - this.listBoxLane4.SelectItemIndex = this.listBoxLane3.SelectItemIndex; - this.listBoxLane5.SelectItemIndex = this.listBoxLane3.SelectItemIndex; - this.listBoxLane6.SelectItemIndex = this.listBoxLane3.SelectItemIndex; - } - private void listBoxLane4_Click(object sender, EventArgs e) - { - this.listBoxTime.SelectItemIndex = this.listBoxLane4.SelectItemIndex; - this.listBoxLane1.SelectItemIndex = this.listBoxLane4.SelectItemIndex; - this.listBoxLane2.SelectItemIndex = this.listBoxLane4.SelectItemIndex; - this.listBoxLane3.SelectItemIndex = this.listBoxLane4.SelectItemIndex; - this.listBoxLane5.SelectItemIndex = this.listBoxLane4.SelectItemIndex; - this.listBoxLane6.SelectItemIndex = this.listBoxLane4.SelectItemIndex; - } - private void listBoxLane5_Click(object sender, EventArgs e) - { - this.listBoxTime.SelectItemIndex = this.listBoxLane5.SelectItemIndex; - this.listBoxLane1.SelectItemIndex = this.listBoxLane5.SelectItemIndex; - this.listBoxLane2.SelectItemIndex = this.listBoxLane5.SelectItemIndex; - this.listBoxLane3.SelectItemIndex = this.listBoxLane5.SelectItemIndex; - this.listBoxLane4.SelectItemIndex = this.listBoxLane5.SelectItemIndex; - this.listBoxLane6.SelectItemIndex = this.listBoxLane5.SelectItemIndex; - } - private void listBoxLane6_Click(object sender, EventArgs e) - { - this.listBoxTime.SelectItemIndex = this.listBoxLane6.SelectItemIndex; - this.listBoxLane1.SelectItemIndex = this.listBoxLane6.SelectItemIndex; - this.listBoxLane2.SelectItemIndex = this.listBoxLane6.SelectItemIndex; - this.listBoxLane3.SelectItemIndex = this.listBoxLane6.SelectItemIndex; - this.listBoxLane4.SelectItemIndex = this.listBoxLane6.SelectItemIndex; - this.listBoxLane5.SelectItemIndex = this.listBoxLane6.SelectItemIndex; + SmartX.SmartListBox lsb = (SmartX.SmartListBox)(sender); + + if (lsb.SelectItemIndex == -1) + return; + + this.SelectLaneTextColor(lsb.SelectItemIndex); } #endregion }