..
This commit is contained in:
@@ -57,7 +57,7 @@ namespace Project
|
||||
string.Empty
|
||||
});
|
||||
}
|
||||
|
||||
dvMot.Columns[10].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft;
|
||||
//링크레이블과 버튼 연결
|
||||
AttachEvents();
|
||||
}
|
||||
@@ -402,7 +402,7 @@ namespace Project
|
||||
//if (groupBox3.Enabled == false) groupBox3.Enabled = true;
|
||||
|
||||
//각축별 기본 상태를 표시해준다.
|
||||
dvMot.SuspendLayout();
|
||||
//dvMot.SuspendLayout();
|
||||
for (int r = 0; r < dvMot.RowCount; r++) // 오류수정 2111221
|
||||
{
|
||||
var row = this.dvMot.Rows[r];
|
||||
@@ -411,13 +411,20 @@ namespace Project
|
||||
row.Cells[2].Value = $"{PUB.mot.GetCmdPos(axis)}";
|
||||
row.Cells[3].Value = $"{PUB.mot.GetActPos(axis)}";
|
||||
row.Cells[4].Style.BackColor = PUB.mot.IsOrg(axis) ? Color.SkyBlue : Color.Gray;
|
||||
row.Cells[5].Style.BackColor = PUB.mot.IsLimitN(axis) ? Color.Red : Color.Gray;
|
||||
row.Cells[6].Style.BackColor = PUB.mot.IsLimitP(axis) ? Color.Red : Color.Gray;
|
||||
row.Cells[7].Style.BackColor = PUB.mot.IsInp(axis) ? Color.SkyBlue : Color.Gray;
|
||||
row.Cells[8].Style.BackColor = PUB.mot.IsServAlarm(axis) ? Color.Red : Color.Gray;
|
||||
row.Cells[9].Style.BackColor = PUB.mot.IsHomeSet(axis) ? Color.Green : Color.Gray;
|
||||
}
|
||||
dvMot.ResumeLayout();
|
||||
row.Cells[4].Value = PUB.mot.IsOrg(axis) ? "O" : "";
|
||||
row.Cells[5].Style.BackColor = PUB.mot.IsLimitN(axis) ? Color.Red : Color.Gray;
|
||||
row.Cells[5].Value = PUB.mot.IsLimitN(axis) ? "O" : "";
|
||||
row.Cells[6].Style.BackColor = PUB.mot.IsLimitP(axis) ? Color.Red : Color.Gray;
|
||||
row.Cells[6].Value = PUB.mot.IsLimitP(axis) ? "O" : "";
|
||||
row.Cells[7].Style.BackColor = PUB.mot.IsInp(axis) ? Color.SkyBlue : Color.Gray;
|
||||
row.Cells[7].Value = PUB.mot.IsInp(axis) ? "O" : "";
|
||||
row.Cells[8].Style.BackColor = PUB.mot.IsServAlarm(axis) ? Color.Red : Color.Gray;
|
||||
row.Cells[8].Value = PUB.mot.IsServAlarm(axis) ? "O" : "";
|
||||
row.Cells[9].Style.BackColor = PUB.mot.IsHomeSet(axis) ? Color.Green : Color.Gray;
|
||||
row.Cells[9].Value = PUB.mot.IsHomeSet(axis) ? "O" : "";
|
||||
row.Cells[10].Value = PUB.mot.IsServOn(axis) ? "Servo On" : "Servo Off";
|
||||
}
|
||||
//dvMot.ResumeLayout();
|
||||
}
|
||||
// this.tblFG.Invalidate();
|
||||
}
|
||||
@@ -732,7 +739,7 @@ namespace Project
|
||||
cntE += 1;
|
||||
pDr.PosTitle = arrTitle;
|
||||
}
|
||||
//pDr.Description = targetem.DescriptionAttr();
|
||||
pDr.Description = targetem.DescriptionAttr();
|
||||
//pDr.Category = targetem.CategoryAttr();
|
||||
pDr.Check = true;
|
||||
pDr.EndEdit();
|
||||
|
||||
Reference in New Issue
Block a user