천호석
2022-12-02 0ea3c195df71c3e26bf341d095d209b4d8e4c562
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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;
        }
    }
}