修改结构
This commit is contained in:
@@ -11,7 +11,7 @@ using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using CleanMachine.Model;
|
||||
namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
//[FormType(EnumFormType.IoMonitor)]
|
||||
@@ -33,7 +33,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
}
|
||||
private void Show_X_Y_Status(object sender, EventArgs e)
|
||||
{
|
||||
BasPlcItemMd item = sender as BasPlcItemMd;
|
||||
PlcItem item = sender as PlcItem;
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (item.PlcItemDataType == 2)
|
||||
@@ -82,8 +82,8 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
if (GlobalHelper.PlcItemMd_X_List != null && GlobalHelper.PlcItemMd_X_List.Count > 0)
|
||||
{
|
||||
List<BasPlcItemMd> tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
||||
foreach (BasPlcItemMd item in tempLst)
|
||||
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
||||
foreach (PlcItem item in tempLst)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
@@ -99,8 +99,8 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
|
||||
if (GlobalHelper.PlcItemMd_Y_List != null && GlobalHelper.PlcItemMd_Y_List.Count > 0)
|
||||
{
|
||||
List<BasPlcItemMd> tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
||||
foreach (BasPlcItemMd item in tempLst)
|
||||
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
||||
foreach (PlcItem item in tempLst)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user