IO卡的HeadText上增加卡的ID属性

master
lhiven 2 years ago
parent d7e501b70c
commit 91f9910a03

@ -36,7 +36,7 @@ namespace Rs.MotionPlat
{ {
TabPage tp = new TabPage(); TabPage tp = new TabPage();
tp.BackColor = Color.FromArgb(11, 16, 36); tp.BackColor = Color.FromArgb(11, 16, 36);
tp.Text = card.Name; tp.Text = card.Name + "_" + card.CardID;
tab.TabPages.Add(tp); tab.TabPages.Add(tp);
if(card.DIn.Count>0 && card.DOut.Count>0) if(card.DIn.Count>0 && card.DOut.Count>0)
@ -55,14 +55,14 @@ namespace Rs.MotionPlat
table.Controls.Add(panel, 0, 0); table.Controls.Add(panel, 0, 0);
Label lblIn = new Label(); Label lblIn = new Label();
lblIn.ForeColor = Color.Black; lblIn.ForeColor = Color.White;
lblIn.Font = new Font("宋体", 20); lblIn.Font = new Font("宋体", 20);
lblIn.AutoSize = false; lblIn.AutoSize = false;
lblIn.Dock = DockStyle.Top; lblIn.Dock = DockStyle.Top;
lblIn.TextAlign = ContentAlignment.MiddleCenter; lblIn.TextAlign = ContentAlignment.MiddleCenter;
lblIn.Text = "输入"; lblIn.Text = "输入";
lblIn.Height = 50; lblIn.Height = 50;
lblIn.BackColor = Color.FromArgb(255, 255, 255); lblIn.BackColor = Color.Gray;
@ -131,14 +131,14 @@ namespace Rs.MotionPlat
try try
{ {
IOStatus iostatus = new IOStatus(); IOStatus iostatus = new IOStatus();
iostatus.Font = new Font("宋体", 16); iostatus.Font = new Font("宋体", 10);
iostatus.Tag = io; iostatus.Tag = io;
iostatus.Margin = new Padding(30, 20, 30, 20); iostatus.Margin = new Padding(30, 20, 30, 20);
iostatus.IoNO = io.Index; iostatus.IoNO = io.Index;
iostatus.Radius = 10; iostatus.Radius = 10;
iostatus.AutoSize = false; iostatus.AutoSize = false;
iostatus.ForeColor = Color.White; iostatus.ForeColor = Color.White;
iostatus.Size = new Size(170, 70); iostatus.Size = new Size(170, 50);
iostatus.Status = 0; iostatus.Status = 0;
iostatus.Text = io.Name; iostatus.Text = io.Name;
ioDic.Add(io.Name, iostatus); ioDic.Add(io.Name, iostatus);

Loading…
Cancel
Save