private Color RadioColor1 = Color.Green; //显示不同状态灯的颜色
private Color RadioColor2 = Color.Blue;
private Color RadioColor3 = Color.Pink;
//封装修改颜色方法
public void UpdateLight(int light)
{
label1.Text = light.ToString();
}
//设值label标签label1_Paint事件
private void label1_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;