修改结构
This commit is contained in:
@@ -15,7 +15,7 @@ using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using CleanMachine.Model;
|
||||
namespace CleanMachineHMI
|
||||
{
|
||||
[FormType(EnumFormType.IoMonitor)]
|
||||
@@ -39,7 +39,7 @@ namespace CleanMachineHMI
|
||||
public class BtnPlcItemMonitor
|
||||
{
|
||||
public CircleButton ctn { get; set; }
|
||||
public BasPlcItemMd plcItemMd { get; set; }
|
||||
public PlcItem plcItemMd { get; set; }
|
||||
}
|
||||
private void frmIOMonitor_Load(object sender, EventArgs e)
|
||||
{
|
||||
@@ -151,7 +151,7 @@ namespace CleanMachineHMI
|
||||
if (GlobalHelper.PlcItemMd_X_List != null && GlobalHelper.PlcItemMd_X_List.Count > 0)
|
||||
{
|
||||
//List<BasPlcItemMd> tempLst = AppConfig.PlcItemMd_X_List.FindAll(x => x.PlcItemName != "备用").OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
||||
List<BasPlcItemMd> tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
||||
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
||||
int dataSum = tempLst.Count;
|
||||
int rowNum;
|
||||
if (dataSum % 2 == 0)
|
||||
@@ -188,7 +188,7 @@ namespace CleanMachineHMI
|
||||
colSecondLocX = wdNum + tmpSpace + 1;
|
||||
|
||||
int rowSpace = 7;
|
||||
foreach (BasPlcItemMd item in tempLst)
|
||||
foreach (PlcItem item in tempLst)
|
||||
{
|
||||
|
||||
if (tmpNum <= rowNum)
|
||||
@@ -273,7 +273,7 @@ namespace CleanMachineHMI
|
||||
if (GlobalHelper.PlcItemMd_Y_List != null && GlobalHelper.PlcItemMd_Y_List.Count > 0)
|
||||
{
|
||||
//List<BasPlcItemMd> tempLst = AppConfig.PlcItemMd_Y_List.FindAll(x => x.PlcItemName != "备用").OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
||||
List<BasPlcItemMd> tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
||||
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
||||
int dataSum = tempLst.Count;
|
||||
//int dataSum = AppConfig.PlcItemMd_Y_List.Count;
|
||||
int rowNum;
|
||||
@@ -313,7 +313,7 @@ namespace CleanMachineHMI
|
||||
colSecondLocX = wdNum + tmpSpace + 1;
|
||||
|
||||
int rowSpace = 7;
|
||||
foreach (BasPlcItemMd item in tempLst)
|
||||
foreach (PlcItem item in tempLst)
|
||||
{
|
||||
|
||||
if (tmpNum <= rowNum)
|
||||
|
||||
Reference in New Issue
Block a user