'개별보기' 상태에서 전해조 그룹 변경 時 자동으로 선택된 전해조 채널 보이기

This commit is contained in:
shark219-hub
2024-12-09 16:32:00 +09:00
parent ac4448e59e
commit 9d580a0f98
2 changed files with 48 additions and 0 deletions

View File

@@ -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<double>();
if (dataVolt[idx - 1] == null) dataVolt[idx - 1] = new List<float>();
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);
}

View File

@@ -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<double>();
if (dataVolt[idx - 1] == null) dataVolt[idx - 1] = new List<float>();
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);
}