실시간트렌드뷰도 전해조 그룹 변경 時 자동으로 선택된 전해조 채널 보기
This commit is contained in:
		| @@ -395,6 +395,32 @@ namespace vmsnet | ||||
|                 newdr.c2 = ""; | ||||
|                 newdr.cname = dr.TITLE; | ||||
|                 newdr.cc = dr.COLOR; | ||||
|  | ||||
|                 /* 작성자: 이재웅, 작성일: 2024-12-18, 내용: '실시간트렌드' 보기에서 전해조 그룹 변경 時 자동으로 선택된 전해조 채널 보기 */ | ||||
|                 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); | ||||
|             } | ||||
|             ds1.channel.AcceptChanges(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shark219-hub
					shark219-hub