1
This commit is contained in:
@@ -14,7 +14,7 @@ using System.Windows.Forms;
|
||||
using CleanMachine.Model;
|
||||
namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
//[FormType(EnumFormType.IoMonitor)]
|
||||
[FormType(EnumFormType.IoMonitor)]
|
||||
public partial class frmIOMonitor : UserControl
|
||||
{
|
||||
public frmIOMonitor()
|
||||
@@ -34,7 +34,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
private void Show_X_Y_Status(object sender, EventArgs e)
|
||||
{
|
||||
PlcItem item = sender as PlcItem;
|
||||
Invoke(new Action(() =>
|
||||
BeginInvoke(new Action(() =>
|
||||
{
|
||||
if (item.PlcItemDataType == 2)
|
||||
{
|
||||
@@ -85,7 +85,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
||||
foreach (PlcItem item in tempLst)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
BeginInvoke(new Action(() =>
|
||||
{
|
||||
if (this.Controls.Find("klb_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
|
||||
{
|
||||
@@ -102,7 +102,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
||||
foreach (PlcItem item in tempLst)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
BeginInvoke(new Action(() =>
|
||||
{
|
||||
if (this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
|
||||
{
|
||||
@@ -118,6 +118,6 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
KryptonMessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3449,5 +3449,10 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ktb_IR_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.kdtp_RecordDate.Value = DateTime.Now;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user