This commit is contained in:
gongxh
2022-05-06 12:28:16 +08:00
parent c57ca69dfd
commit 0e459f231a
49 changed files with 458 additions and 388 deletions

View File

@@ -27,7 +27,7 @@ namespace CleanMachineHMI.FrmUserControl
private void frmIOMonitorNew_Load(object sender, EventArgs e)
{
initControl();
GlobalHelper.OnShowX_Y_Status += Show_X_Y_Status;
Global.OnShowX_Y_Status += Show_X_Y_Status;
}
private void Show_X_Y_Status(object sender, EventArgs e)
{
@@ -78,9 +78,9 @@ namespace CleanMachineHMI.FrmUserControl
{
try
{
if (GlobalHelper.PlcItemMd_X_List != null && GlobalHelper.PlcItemMd_X_List.Count > 0)
if (Global.PlcItemMd_X_List != null && Global.PlcItemMd_X_List.Count > 0)
{
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
List<PlcItem> tempLst = Global.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
foreach (PlcItem item in tempLst)
{
BeginInvoke(new Action(() =>
@@ -95,9 +95,9 @@ namespace CleanMachineHMI.FrmUserControl
}
}
if (GlobalHelper.PlcItemMd_Y_List != null && GlobalHelper.PlcItemMd_Y_List.Count > 0)
if (Global.PlcItemMd_Y_List != null && Global.PlcItemMd_Y_List.Count > 0)
{
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
List<PlcItem> tempLst = Global.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
foreach (PlcItem item in tempLst)
{
BeginInvoke(new Action(() =>