using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Drawing;
|
using System.Data;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using System.Windows.Forms;
|
|
namespace SHARP_CLAS_UI
|
{
|
public partial class uc_Input_Vlaue : UserControl
|
{
|
public bool status;
|
public readonly string name;
|
public readonly string description;
|
|
public uc_Input_Vlaue(string name, string description, bool status = false)
|
{
|
InitializeComponent();
|
this.name = name;
|
this.description = description;
|
lb_Name.Text = name;
|
lb_Description.Text = description;
|
this.status = status;
|
lb_State.BackColor = status ? Color.Lime : Color.Green;
|
}
|
|
public void Change_Status(bool status)
|
{
|
this.status = status;
|
lb_State.BackColor = status ? Color.Lime : Color.Green;
|
}
|
}
|
}
|