From 9d580a0f987b23418edf962168c6bc29790d4878 Mon Sep 17 00:00:00 2001 From: shark219-hub Date: Mon, 9 Dec 2024 16:32:00 +0900 Subject: [PATCH] =?UTF-8?q?'=EA=B0=9C=EB=B3=84=EB=B3=B4=EA=B8=B0'=20?= =?UTF-8?q?=EC=83=81=ED=83=9C=EC=97=90=EC=84=9C=20=EC=A0=84=ED=95=B4?= =?UTF-8?q?=EC=A1=B0=20=EA=B7=B8=EB=A3=B9=20=EB=B3=80=EA=B2=BD=20=E6=99=82?= =?UTF-8?q?=20=EC=9E=90=EB=8F=99=EC=9C=BC=EB=A1=9C=20=EC=84=A0=ED=83=9D?= =?UTF-8?q?=EB=90=9C=20=EC=A0=84=ED=95=B4=EC=A1=B0=20=EC=B1=84=EB=84=90=20?= =?UTF-8?q?=EB=B3=B4=EC=9D=B4=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cVMS.NET_CS/FMain.cs | 24 ++++++++++++++++++++++++ cVMS.NET_CS/Frm_Sub.cs | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/cVMS.NET_CS/FMain.cs b/cVMS.NET_CS/FMain.cs index bb918cb..634121b 100644 --- a/cVMS.NET_CS/FMain.cs +++ b/cVMS.NET_CS/FMain.cs @@ -2002,6 +2002,30 @@ namespace vmsnet newdr.cname = dr.TITLE; newdr.cc = dr.COLOR; + /* 작성자: 이재웅, 작성일: 2024-12-09, 내용: '개별보기' 상태에서 전해조 그룹 변경 時 자동으로 선택된 전해조 채널 보이기 */ + if (newdr.use) + { + int idx = dr.IDX; + //지정된 플롯의 표시여부를 변경한다. + if (this.Streamer1.Length < idx) + { + Array.Resize(ref Streamer1, idx); + Array.Resize(ref dataVolt, idx); + Array.Resize(ref dataTime, idx); + } + + if (dataTime[idx - 1] == null) dataTime[idx - 1] = new List(); + if (dataVolt[idx - 1] == null) dataVolt[idx - 1] = new List(); + if (Streamer1[idx - 1] == null) Streamer1[idx - 1] = formsPlot1.Plot.Add.ScatterPoints(dataTime[idx - 1], dataVolt[idx - 1]); + + Streamer1[idx - 1].LineWidth = 1; + Streamer1[idx - 1].MarkerSize = 0; + /* 작성자: 이재웅, 작성일: 2024-11-27, 내용: 변경한 셀이름으로 차트범례 표시 */ + Streamer1[idx - 1].LegendText = newdr.cname; //$"CH{idx}"; + Streamer1[idx - 1].IsVisible = true; + selectchlist.Add(idx); //선택채널에 추가한다. + } + /************************************************************************/ ds1.channel.AddchannelRow(newdr); } diff --git a/cVMS.NET_CS/Frm_Sub.cs b/cVMS.NET_CS/Frm_Sub.cs index 875961a..7d3e753 100644 --- a/cVMS.NET_CS/Frm_Sub.cs +++ b/cVMS.NET_CS/Frm_Sub.cs @@ -1039,6 +1039,30 @@ namespace vmsnet newdr.cname = dr.TITLE; newdr.cc = dr.COLOR; + /* 작성자: 이재웅, 작성일: 2024-12-09, 내용: '개별보기' 상태에서 전해조 그룹 변경 時 자동으로 선택된 전해조 채널 보이기 */ + if (newdr.use) + { + int idx = dr.IDX; + //지정된 플롯의 표시여부를 변경한다. + if (this.Streamer1.Length < idx) + { + Array.Resize(ref Streamer1, idx); + Array.Resize(ref dataVolt, idx); + Array.Resize(ref dataTime, idx); + } + + if (dataTime[idx - 1] == null) dataTime[idx - 1] = new List(); + if (dataVolt[idx - 1] == null) dataVolt[idx - 1] = new List(); + if (Streamer1[idx - 1] == null) Streamer1[idx - 1] = formsPlot1.Plot.Add.ScatterPoints(dataTime[idx - 1], dataVolt[idx - 1]); + + Streamer1[idx - 1].LineWidth = 1; + Streamer1[idx - 1].MarkerSize = 0; + /* 작성자: 이재웅, 작성일: 2024-11-27, 내용: 변경한 셀이름으로 차트범례 표시 */ + Streamer1[idx - 1].LegendText = newdr.cname; //$"CH{idx}"; + Streamer1[idx - 1].IsVisible = true; + selectchlist.Add(idx); //선택채널에 추가한다. + } + /************************************************************************/ ds1.channel.AddchannelRow(newdr); }