Files
2022-05-11 15:20:00 +08:00

58 lines
985 B
C#

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;
}
}
}
}