File name
Commit message
Commit date
File name
Commit message
Commit date
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 KHPANEL
{
public partial class ucTempControl : UserControl
{
int m_State = 0;
Image m_Stop = Properties.Resources.h_007;
Image m_Run = Properties.Resources.h_001;
Image m_Warning = Properties.Resources.h_003;
Image m_Error = Properties.Resources.h_005;
public ucTempControl()
{
InitializeComponent();
}
[Category("설정"), Description("표시 텍스트")]
public string LabelText
{
get
{
return this.label_Title.Text;
}
set
{
this.label_Title.Text = value;
this.label_Title.SetBounds(this.panel_Title.Width / 2 - this.label_Title.Width / 2, this.panel_Title.Height / 2 - this.label_Title.Height / 2, this.label_Title.Width, this.label_Title.Height);
}
}
[Category("설정"), Description("상태 설정")]
public int State
{
get
{
return this.m_State;
}
set
{
this.m_State = value;
if (m_State == 0)
{
this.BackgroundImage = m_Stop;
}
else if (m_State == 1)
{
this.BackgroundImage = m_Run;
}
else if (m_State == 2)
{
this.BackgroundImage = m_Warning;
}
else if (m_State == 3)
{
this.BackgroundImage = m_Error;
}
}
}
[Category("설정"), Description("상태 설정")]
public string Time
{
get
{
return this.label_Time.Text;
}
set
{
this.label_Time.Text = value;
}
}
[Category("설정"), Description("상태 설정")]
public string Temp
{
get
{
return this.label_Temp.Text;
}
set
{
this.label_Temp.Text = value;
}
}
}
}