修改
This commit is contained in:
@@ -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(() =>
|
||||
|
||||
Reference in New Issue
Block a user