실시간트렌드뷰도 전해조 그룹 변경 時 자동으로 선택된 전해조 채널 보기
This commit is contained in:
@@ -87,7 +87,7 @@ namespace vmsnet
|
||||
this.cmb_tanks.FormattingEnabled = true;
|
||||
this.cmb_tanks.Location = new System.Drawing.Point(72, 3);
|
||||
this.cmb_tanks.Name = "cmb_tanks";
|
||||
this.cmb_tanks.Size = new System.Drawing.Size(1052, 37);
|
||||
this.cmb_tanks.Size = new System.Drawing.Size(1052, 40);
|
||||
this.cmb_tanks.TabIndex = 16;
|
||||
this.cmb_tanks.SelectedIndexChanged += new System.EventHandler(this.cmb_group_SelectedIndexChanged);
|
||||
//
|
||||
@@ -124,7 +124,7 @@ namespace vmsnet
|
||||
this.TableLayoutPanel1.RowCount = 2;
|
||||
this.TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 39F));
|
||||
this.TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.TableLayoutPanel1.Size = new System.Drawing.Size(1247, 862);
|
||||
this.TableLayoutPanel1.Size = new System.Drawing.Size(1247, 860);
|
||||
this.TableLayoutPanel1.TabIndex = 9;
|
||||
//
|
||||
// Panel2
|
||||
@@ -132,7 +132,7 @@ namespace vmsnet
|
||||
this.Panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.Panel2.Location = new System.Drawing.Point(3, 42);
|
||||
this.Panel2.Name = "Panel2";
|
||||
this.Panel2.Size = new System.Drawing.Size(1241, 817);
|
||||
this.Panel2.Size = new System.Drawing.Size(1241, 815);
|
||||
this.Panel2.TabIndex = 8;
|
||||
//
|
||||
// bsCHList
|
||||
@@ -167,21 +167,22 @@ namespace vmsnet
|
||||
this.cmb_time,
|
||||
this.prb1,
|
||||
this.btConfig});
|
||||
this.ToolStrip2.Location = new System.Drawing.Point(0, 862);
|
||||
this.ToolStrip2.Location = new System.Drawing.Point(0, 860);
|
||||
this.ToolStrip2.Name = "ToolStrip2";
|
||||
this.ToolStrip2.Size = new System.Drawing.Size(1247, 31);
|
||||
this.ToolStrip2.Size = new System.Drawing.Size(1247, 33);
|
||||
this.ToolStrip2.TabIndex = 10;
|
||||
this.ToolStrip2.Text = "ToolStrip2";
|
||||
//
|
||||
// ToolStripLabel1
|
||||
//
|
||||
this.ToolStripLabel1.Name = "ToolStripLabel1";
|
||||
this.ToolStripLabel1.Size = new System.Drawing.Size(69, 28);
|
||||
this.ToolStripLabel1.Size = new System.Drawing.Size(84, 28);
|
||||
this.ToolStripLabel1.Text = "전압범위";
|
||||
//
|
||||
// cmb_volt
|
||||
//
|
||||
this.cmb_volt.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_volt.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.cmb_volt.Items.AddRange(new object[] {
|
||||
"Auto",
|
||||
"3v",
|
||||
@@ -194,18 +195,19 @@ namespace vmsnet
|
||||
"17v",
|
||||
"20v"});
|
||||
this.cmb_volt.Name = "cmb_volt";
|
||||
this.cmb_volt.Size = new System.Drawing.Size(75, 31);
|
||||
this.cmb_volt.Size = new System.Drawing.Size(75, 33);
|
||||
this.cmb_volt.SelectedIndexChanged += new System.EventHandler(this.cmb_volt_SelectedIndexChanged);
|
||||
//
|
||||
// ToolStripLabel2
|
||||
//
|
||||
this.ToolStripLabel2.Name = "ToolStripLabel2";
|
||||
this.ToolStripLabel2.Size = new System.Drawing.Size(69, 28);
|
||||
this.ToolStripLabel2.Size = new System.Drawing.Size(84, 28);
|
||||
this.ToolStripLabel2.Text = "시간범위";
|
||||
//
|
||||
// cmb_time
|
||||
//
|
||||
this.cmb_time.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmb_time.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.cmb_time.Items.AddRange(new object[] {
|
||||
"1분",
|
||||
"3분",
|
||||
@@ -214,7 +216,7 @@ namespace vmsnet
|
||||
"30분",
|
||||
"60분"});
|
||||
this.cmb_time.Name = "cmb_time";
|
||||
this.cmb_time.Size = new System.Drawing.Size(75, 31);
|
||||
this.cmb_time.Size = new System.Drawing.Size(75, 33);
|
||||
this.cmb_time.SelectedIndexChanged += new System.EventHandler(this.cmb_time_SelectedIndexChanged_1);
|
||||
//
|
||||
// prb1
|
||||
@@ -230,7 +232,7 @@ namespace vmsnet
|
||||
this.btConfig.Image = global::vmsnet.Properties.Resources.graphsetting;
|
||||
this.btConfig.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.btConfig.Name = "btConfig";
|
||||
this.btConfig.Size = new System.Drawing.Size(29, 28);
|
||||
this.btConfig.Size = new System.Drawing.Size(34, 28);
|
||||
this.btConfig.Text = "config";
|
||||
this.btConfig.Click += new System.EventHandler(this.btConfig_Click);
|
||||
//
|
||||
|
||||
@@ -395,6 +395,32 @@ namespace vmsnet
|
||||
newdr.c2 = "";
|
||||
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);
|
||||
}
|
||||
ds1.channel.AcceptChanges();
|
||||
|
||||
Reference in New Issue
Block a user