修改
This commit is contained in:
57
CleanMachineHMI/FrmUserControl/IOBlock.cs
Normal file
57
CleanMachineHMI/FrmUserControl/IOBlock.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
public partial class IOBlock : UserControl
|
||||
{
|
||||
public IOBlock()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
}
|
||||
|
||||
public string Code
|
||||
{
|
||||
set
|
||||
{
|
||||
this.labelCode.Text = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string IOName
|
||||
{
|
||||
set
|
||||
{
|
||||
this.labelName.Text = value;
|
||||
this.toolTip1.SetToolTip(this.labelName, value);
|
||||
// this.toolTip1.ToolTipTitle = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool Value
|
||||
{
|
||||
|
||||
set
|
||||
{
|
||||
|
||||
this.cbt_value.BackColor = value ? Color.Lime : Color.Red;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user