+++ KHPANEL.sln
... | ... | @@ -0,0 +1,25 @@ |
1 | + | |
2 | +Microsoft Visual Studio Solution File, Format Version 12.00 | |
3 | +# Visual Studio Version 16 | |
4 | +VisualStudioVersion = 16.0.32002.261 | |
5 | +MinimumVisualStudioVersion = 10.0.40219.1 | |
6 | +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KHPANEL", "KHPANEL\KHPANEL.csproj", "{B73643C5-A31F-42CD-85BB-BCBE01FD15C6}" | |
7 | +EndProject | |
8 | +Global | |
9 | + GlobalSection(SolutionConfigurationPlatforms) = preSolution | |
10 | + Debug|Any CPU = Debug|Any CPU | |
11 | + Release|Any CPU = Release|Any CPU | |
12 | + EndGlobalSection | |
13 | + GlobalSection(ProjectConfigurationPlatforms) = postSolution | |
14 | + {B73643C5-A31F-42CD-85BB-BCBE01FD15C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |
15 | + {B73643C5-A31F-42CD-85BB-BCBE01FD15C6}.Debug|Any CPU.Build.0 = Debug|Any CPU | |
16 | + {B73643C5-A31F-42CD-85BB-BCBE01FD15C6}.Release|Any CPU.ActiveCfg = Release|Any CPU | |
17 | + {B73643C5-A31F-42CD-85BB-BCBE01FD15C6}.Release|Any CPU.Build.0 = Release|Any CPU | |
18 | + EndGlobalSection | |
19 | + GlobalSection(SolutionProperties) = preSolution | |
20 | + HideSolutionNode = FALSE | |
21 | + EndGlobalSection | |
22 | + GlobalSection(ExtensibilityGlobals) = postSolution | |
23 | + SolutionGuid = {FABB63F8-B5D8-44C7-AEED-6FFE910BEC07} | |
24 | + EndGlobalSection | |
25 | +EndGlobal |
+++ KHPANEL/App.config
... | ... | @@ -0,0 +1,6 @@ |
1 | +<?xml version="1.0" encoding="utf-8" ?> | |
2 | +<configuration> | |
3 | + <startup> | |
4 | + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | |
5 | + </startup> | |
6 | +</configuration>(No newline at end of file) |
+++ KHPANEL/CircularProgressBar.cs
... | ... | @@ -0,0 +1,378 @@ |
1 | +using System; | |
2 | +using System.ComponentModel; | |
3 | +using System.Drawing; | |
4 | +using System.Drawing.Drawing2D; | |
5 | +using System.Windows.Forms; | |
6 | +namespace KHPANEL | |
7 | +{ | |
8 | + | |
9 | +public class CircularProgressBar : Control | |
10 | + { | |
11 | + #region Enums | |
12 | + | |
13 | + public enum _ProgressShape | |
14 | + { | |
15 | + Round, | |
16 | + Flat | |
17 | + } | |
18 | + | |
19 | + public enum _TextMode | |
20 | + { | |
21 | + None, | |
22 | + Value, | |
23 | + Percentage, | |
24 | + Custom | |
25 | + } | |
26 | + | |
27 | + #endregion | |
28 | + | |
29 | + #region Private Variables | |
30 | + | |
31 | + private long _Value; | |
32 | + private long _Maximum = 100; | |
33 | + private int _LineWitdh = 1; | |
34 | + private float _BarWidth = 14f; | |
35 | + | |
36 | + private Color _ProgressColor1 = Color.Orange; | |
37 | + private Color _ProgressColor2 = Color.Orange; | |
38 | + private Color _LineColor = Color.Silver; | |
39 | + private LinearGradientMode _GradientMode = LinearGradientMode.ForwardDiagonal; | |
40 | + private _ProgressShape ProgressShapeVal; | |
41 | + private _TextMode ProgressTextMode; | |
42 | + | |
43 | + #endregion | |
44 | + | |
45 | + #region Contructor | |
46 | + | |
47 | + public CircularProgressBar() | |
48 | + { | |
49 | + SetStyle(ControlStyles.SupportsTransparentBackColor, true); | |
50 | + SetStyle(ControlStyles.Opaque, true); | |
51 | + this.BackColor = SystemColors.Control; | |
52 | + this.ForeColor = Color.DimGray; | |
53 | + | |
54 | + this.Size = new Size(130, 130); | |
55 | + this.Font = new Font("Segoe UI", 15); | |
56 | + this.MinimumSize = new Size(100, 100); | |
57 | + this.DoubleBuffered = true; | |
58 | + | |
59 | + this.LineWidth = 1; | |
60 | + this.LineColor = Color.DimGray; | |
61 | + | |
62 | + Value = 57; | |
63 | + ProgressShape = _ProgressShape.Flat; | |
64 | + TextMode = _TextMode.Percentage; | |
65 | + } | |
66 | + | |
67 | + #endregion | |
68 | + | |
69 | + #region Public Custom Properties | |
70 | + | |
71 | + /// <summary>Determina el Valor del Progreso</summary> | |
72 | + [Description("Valor Entero que determina la posision de la Barra de Progreso."), Category("Behavior")] | |
73 | + public long Value | |
74 | + { | |
75 | + get { return _Value; } | |
76 | + set | |
77 | + { | |
78 | + if (value > _Maximum) | |
79 | + value = _Maximum; | |
80 | + _Value = value; | |
81 | + Invalidate(); | |
82 | + } | |
83 | + } | |
84 | + | |
85 | + [Description("Obtiene o Establece el Valor Maximo de la barra de Progreso."), Category("Behavior")] | |
86 | + public long Maximum | |
87 | + { | |
88 | + get { return _Maximum; } | |
89 | + set | |
90 | + { | |
91 | + if (value < 1) | |
92 | + value = 1; | |
93 | + _Maximum = value; | |
94 | + Invalidate(); | |
95 | + } | |
96 | + } | |
97 | + | |
98 | + [Description("Color Inicial de la Barra de Progreso"), Category("Appearance")] | |
99 | + public Color BarColor1 | |
100 | + { | |
101 | + get { return _ProgressColor1; } | |
102 | + set | |
103 | + { | |
104 | + _ProgressColor1 = value; | |
105 | + Invalidate(); | |
106 | + } | |
107 | + } | |
108 | + | |
109 | + [Description("Color Final de la Barra de Progreso"), Category("Appearance")] | |
110 | + public Color BarColor2 | |
111 | + { | |
112 | + get { return _ProgressColor2; } | |
113 | + set | |
114 | + { | |
115 | + _ProgressColor2 = value; | |
116 | + Invalidate(); | |
117 | + } | |
118 | + } | |
119 | + | |
120 | + [Description("Ancho de la Barra de Progreso"), Category("Appearance")] | |
121 | + public float BarWidth | |
122 | + { | |
123 | + get { return _BarWidth; } | |
124 | + set | |
125 | + { | |
126 | + _BarWidth = value; | |
127 | + Invalidate(); | |
128 | + } | |
129 | + } | |
130 | + | |
131 | + [Description("Modo del Gradiente de Color"), Category("Appearance")] | |
132 | + public LinearGradientMode GradientMode | |
133 | + { | |
134 | + get { return _GradientMode; } | |
135 | + set | |
136 | + { | |
137 | + _GradientMode = value; | |
138 | + Invalidate(); | |
139 | + } | |
140 | + } | |
141 | + | |
142 | + [Description("Color de la Linea Intermedia"), Category("Appearance")] | |
143 | + public Color LineColor | |
144 | + { | |
145 | + get { return _LineColor; } | |
146 | + set | |
147 | + { | |
148 | + _LineColor = value; | |
149 | + Invalidate(); | |
150 | + } | |
151 | + } | |
152 | + | |
153 | + [Description("Ancho de la Linea Intermedia"), Category("Appearance")] | |
154 | + public int LineWidth | |
155 | + { | |
156 | + get { return _LineWitdh; } | |
157 | + set | |
158 | + { | |
159 | + _LineWitdh = value; | |
160 | + Invalidate(); | |
161 | + } | |
162 | + } | |
163 | + | |
164 | + [Description("Obtiene o Establece la Forma de los terminales de la barra de progreso."), Category("Appearance")] | |
165 | + public _ProgressShape ProgressShape | |
166 | + { | |
167 | + get { return ProgressShapeVal; } | |
168 | + set | |
169 | + { | |
170 | + ProgressShapeVal = value; | |
171 | + Invalidate(); | |
172 | + } | |
173 | + } | |
174 | + | |
175 | + [Description("Obtiene o Establece el Modo como se muestra el Texto dentro de la barra de Progreso."), Category("Behavior")] | |
176 | + public _TextMode TextMode | |
177 | + { | |
178 | + get { return ProgressTextMode; } | |
179 | + set | |
180 | + { | |
181 | + ProgressTextMode = value; | |
182 | + Invalidate(); | |
183 | + } | |
184 | + } | |
185 | + | |
186 | + [Description("Obtiene el Texto que se muestra dentro del Control"), Category("Behavior")] | |
187 | + public override string Text { get; set; } | |
188 | + | |
189 | + #endregion | |
190 | + | |
191 | + #region EventArgs | |
192 | + | |
193 | + protected override void OnResize(EventArgs e) | |
194 | + { | |
195 | + base.OnResize(e); | |
196 | + SetStandardSize(); | |
197 | + } | |
198 | + | |
199 | + protected override void OnSizeChanged(EventArgs e) | |
200 | + { | |
201 | + base.OnSizeChanged(e); | |
202 | + SetStandardSize(); | |
203 | + } | |
204 | + | |
205 | + protected override void OnPaintBackground(PaintEventArgs p) | |
206 | + { | |
207 | + base.OnPaintBackground(p); | |
208 | + } | |
209 | + | |
210 | + #endregion | |
211 | + | |
212 | + #region Methods | |
213 | + | |
214 | + private void SetStandardSize() | |
215 | + { | |
216 | + int _Size = Math.Max(Width, Height); | |
217 | + Size = new Size(_Size, _Size); | |
218 | + } | |
219 | + | |
220 | + public void Increment(int Val) | |
221 | + { | |
222 | + this._Value += Val; | |
223 | + Invalidate(); | |
224 | + } | |
225 | + | |
226 | + public void Decrement(int Val) | |
227 | + { | |
228 | + this._Value -= Val; | |
229 | + Invalidate(); | |
230 | + } | |
231 | + #endregion | |
232 | + | |
233 | + #region Events | |
234 | + | |
235 | + protected override void OnPaint(PaintEventArgs e) | |
236 | + { | |
237 | + base.OnPaint(e); | |
238 | + using (Bitmap bitmap = new Bitmap(this.Width, this.Height)) | |
239 | + { | |
240 | + using (Graphics graphics = Graphics.FromImage(bitmap)) | |
241 | + { | |
242 | + graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBilinear; | |
243 | + graphics.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality; | |
244 | + graphics.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality; | |
245 | + graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; | |
246 | + | |
247 | + //graphics.Clear(Color.Transparent); //<-- this.BackColor, SystemColors.Control, Color.Transparent | |
248 | + | |
249 | + PaintTransparentBackground(this, e); | |
250 | + | |
251 | + //Dibuja el circulo blanco interior: | |
252 | + using (Brush mBackColor = new SolidBrush(this.BackColor)) | |
253 | + { | |
254 | + graphics.FillEllipse(mBackColor, | |
255 | + 18, 18, | |
256 | + (this.Width - 0x30) + 12, | |
257 | + (this.Height - 0x30) + 12); | |
258 | + } | |
259 | + // Dibuja la delgada Linea gris del medio: | |
260 | + using (Pen pen2 = new Pen(LineColor, this.LineWidth)) | |
261 | + { | |
262 | + graphics.DrawEllipse(pen2, | |
263 | + 18, 18, | |
264 | + (this.Width - 0x30) + 12, | |
265 | + (this.Height - 0x30) + 12); | |
266 | + } | |
267 | + | |
268 | + //Dibuja la Barra de Progreso | |
269 | + using (LinearGradientBrush brush = new LinearGradientBrush(this.ClientRectangle, | |
270 | + this._ProgressColor1, this._ProgressColor2, this.GradientMode)) | |
271 | + { | |
272 | + using (Pen pen = new Pen(brush, this.BarWidth)) | |
273 | + { | |
274 | + switch (this.ProgressShapeVal) | |
275 | + { | |
276 | + case _ProgressShape.Round: | |
277 | + pen.StartCap = LineCap.Round; | |
278 | + pen.EndCap = LineCap.Round; | |
279 | + break; | |
280 | + | |
281 | + case _ProgressShape.Flat: | |
282 | + pen.StartCap = LineCap.Flat; | |
283 | + pen.EndCap = LineCap.Flat; | |
284 | + break; | |
285 | + } | |
286 | + | |
287 | + //Aqui se dibuja realmente la Barra de Progreso | |
288 | + graphics.DrawArc(pen, | |
289 | + 0x12, 0x12, | |
290 | + (this.Width - 0x23) - 2, | |
291 | + (this.Height - 0x23) - 2, | |
292 | + -90, | |
293 | + (int)Math.Round((double)((360.0 / ((double)this._Maximum)) * this._Value))); | |
294 | + } | |
295 | + } | |
296 | + | |
297 | + #region Dibuja el Texto de Progreso | |
298 | + | |
299 | + switch (this.TextMode) | |
300 | + { | |
301 | + case _TextMode.None: | |
302 | + this.Text = string.Empty; | |
303 | + break; | |
304 | + | |
305 | + case _TextMode.Value: | |
306 | + this.Text = _Value.ToString(); | |
307 | + break; | |
308 | + | |
309 | + case _TextMode.Percentage: | |
310 | + this.Text = Convert.ToString(Convert.ToInt32((100 / _Maximum) * _Value)); | |
311 | + break; | |
312 | + | |
313 | + default: | |
314 | + break; | |
315 | + } | |
316 | + | |
317 | + if (this.Text != string.Empty) | |
318 | + { | |
319 | + using (Brush FontColor = new SolidBrush(this.ForeColor)) | |
320 | + { | |
321 | + int ShadowOffset = 2; | |
322 | + SizeF MS = graphics.MeasureString(this.Text, this.Font); | |
323 | + SolidBrush shadowBrush = new SolidBrush(Color.FromArgb(100, this.ForeColor)); | |
324 | + | |
325 | + //Sombra del Texto: | |
326 | + graphics.DrawString(this.Text, this.Font, shadowBrush, | |
327 | + Convert.ToInt32(Width / 2 - MS.Width / 2) + ShadowOffset, | |
328 | + Convert.ToInt32(Height / 2 - MS.Height / 2) + ShadowOffset | |
329 | + ); | |
330 | + | |
331 | + //Texto del Control: | |
332 | + graphics.DrawString(this.Text, this.Font, FontColor, | |
333 | + Convert.ToInt32(Width / 2 - MS.Width / 2), | |
334 | + Convert.ToInt32(Height / 2 - MS.Height / 2)); | |
335 | + } | |
336 | + } | |
337 | + | |
338 | + #endregion | |
339 | + | |
340 | + //Aqui se Dibuja todo el Control: | |
341 | + e.Graphics.DrawImage(bitmap, 0, 0); | |
342 | + graphics.Dispose(); | |
343 | + bitmap.Dispose(); | |
344 | + } | |
345 | + } | |
346 | + } | |
347 | + | |
348 | + private static void PaintTransparentBackground(Control c, PaintEventArgs e) | |
349 | + { | |
350 | + if (c.Parent == null || !Application.RenderWithVisualStyles) | |
351 | + return; | |
352 | + | |
353 | + ButtonRenderer.DrawParentBackground(e.Graphics, c.ClientRectangle, c); | |
354 | + } | |
355 | + | |
356 | + /// <summary>Dibuja un Circulo Relleno de Color con los Bordes perfectos.</summary> | |
357 | + /// <param name="g">'Canvas' del Objeto donde se va a dibujar</param> | |
358 | + /// <param name="brush">Color y estilo del relleno</param> | |
359 | + /// <param name="centerX">Centro del Circulo, en el eje X</param> | |
360 | + /// <param name="centerY">Centro del Circulo, en el eje Y</param> | |
361 | + /// <param name="radius">Radio del Circulo</param> | |
362 | + private void FillCircle(Graphics g, Brush brush, float centerX, float centerY, float radius) | |
363 | + { | |
364 | + g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBilinear; | |
365 | + g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality; | |
366 | + g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality; | |
367 | + g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; | |
368 | + | |
369 | + using (System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath()) | |
370 | + { | |
371 | + g.FillEllipse(brush, centerX - radius, centerY - radius, | |
372 | + radius + radius, radius + radius); | |
373 | + } | |
374 | + } | |
375 | + | |
376 | + #endregion | |
377 | + } | |
378 | +} |
+++ KHPANEL/DBConnectionSingleton.cs
... | ... | @@ -0,0 +1,177 @@ |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Data; | |
4 | +using System.Data.SqlClient; | |
5 | +using System.Linq; | |
6 | +using System.Text; | |
7 | +using System.Threading.Tasks; | |
8 | + | |
9 | +namespace KHPANEL | |
10 | +{ | |
11 | + public class DBConnectionSingleton | |
12 | + { | |
13 | + private static DBConnectionSingleton DBConnection; | |
14 | + | |
15 | + // Connection 정보를 세팅한다. | |
16 | + private string DBURL = "192.168.1.17,1433"; | |
17 | + private string DBPASSWORD = "signus1!"; | |
18 | + //private string DBURL = "signus-smes.koreacentral.cloudapp.azure.com,14443"; | |
19 | + //private string DBPASSWORD = "tlrmsjtm~1@3"; | |
20 | + private string DBNAME = "U3SMES"; | |
21 | + private string DBID = "sa"; | |
22 | + SqlConnection mConn; | |
23 | + | |
24 | + public struct DBValue | |
25 | + { | |
26 | + public string name; | |
27 | + public string value; | |
28 | + public SqlDbType type; | |
29 | + }; | |
30 | + | |
31 | + | |
32 | + public static DBConnectionSingleton Instance() | |
33 | + { | |
34 | + if (DBConnection == null) | |
35 | + { | |
36 | + DBConnection = new DBConnectionSingleton(); | |
37 | + } | |
38 | + return DBConnection; | |
39 | + } | |
40 | + | |
41 | + public bool isConnect() | |
42 | + { | |
43 | + if (mConn == null) return false; | |
44 | + if(mConn.State == ConnectionState.Open) | |
45 | + { | |
46 | + return true; | |
47 | + } | |
48 | + return false; | |
49 | + } | |
50 | + | |
51 | + public bool Connect() | |
52 | + { | |
53 | + string strconn = string.Format(" Data Source={0};Initial Catalog={1};Persist Security Info=false;Integrated Security=false;User ID={2};Password={3};enlist=true;Connect Timeout=2", DBURL, DBNAME, DBID, DBPASSWORD); | |
54 | + mConn = new SqlConnection(strconn); | |
55 | + try | |
56 | + { | |
57 | + // DB 연결 | |
58 | + mConn.Open(); | |
59 | + | |
60 | + // 연결여부에 따라 다른 메시지를 보여준다 | |
61 | + if (mConn.State == ConnectionState.Open) | |
62 | + { | |
63 | + return true; | |
64 | + } | |
65 | + else | |
66 | + { | |
67 | + return false; | |
68 | + } | |
69 | + } | |
70 | + catch (Exception ex) | |
71 | + { | |
72 | + return false; | |
73 | + } | |
74 | + } | |
75 | + | |
76 | + | |
77 | + public bool Close() | |
78 | + { | |
79 | + try | |
80 | + { | |
81 | + // DB 연결해제 | |
82 | + mConn.Close(); | |
83 | + | |
84 | + // 연결여부에 따라 다른 메시지를 보여준다 | |
85 | + if (mConn.State == ConnectionState.Closed) | |
86 | + { | |
87 | + return true; | |
88 | + } | |
89 | + else | |
90 | + { | |
91 | + return false; | |
92 | + } | |
93 | + } | |
94 | + catch (Exception ex) | |
95 | + { | |
96 | + return false; | |
97 | + } | |
98 | + } | |
99 | + | |
100 | + | |
101 | + public DBValue getParams(string name, string value) | |
102 | + { | |
103 | + DBValue d = new DBValue(); | |
104 | + | |
105 | + d.value = value; | |
106 | + d.name = name; | |
107 | + | |
108 | + return d; | |
109 | + | |
110 | + } | |
111 | + | |
112 | + | |
113 | + public bool SetCommand(string sql, params DBValue[] data) | |
114 | + { | |
115 | + if (!isConnect()) | |
116 | + { | |
117 | + Connect(); | |
118 | + } | |
119 | + try | |
120 | + { | |
121 | + SqlCommand com = new SqlCommand(sql, mConn); | |
122 | + com.CommandType = CommandType.StoredProcedure; | |
123 | + for (int i = 0; i < data.Length; i++) | |
124 | + { | |
125 | + SqlParameter pInput = new SqlParameter("@" + data[i].name, SqlDbType.NVarChar, data[i].value.Length); | |
126 | + pInput.Direction = ParameterDirection.Input; | |
127 | + pInput.Value = data[i].value; | |
128 | + com.Parameters.Add(pInput); | |
129 | + //com.Parameters.AddWithValue("@" + data[i].name, data[i].value); | |
130 | + } | |
131 | + | |
132 | + com.ExecuteNonQuery(); | |
133 | + | |
134 | + Close(); | |
135 | + } | |
136 | + catch(Exception ex) | |
137 | + { | |
138 | + return false; | |
139 | + } | |
140 | + return true; | |
141 | + | |
142 | + } | |
143 | + | |
144 | + | |
145 | + public DataTable GetSqlData(string sql) | |
146 | + { | |
147 | + try | |
148 | + { | |
149 | + if (!isConnect()) | |
150 | + { | |
151 | + if (!Connect()) | |
152 | + { | |
153 | + return null; | |
154 | + } | |
155 | + } | |
156 | + SqlDataAdapter da = new SqlDataAdapter(sql, mConn); | |
157 | + | |
158 | + | |
159 | + DataTable dt = new DataTable(); | |
160 | + | |
161 | + | |
162 | + da.Fill(dt); | |
163 | + | |
164 | + Close(); | |
165 | + return dt; | |
166 | + }catch(Exception ex) | |
167 | + { | |
168 | + return null; | |
169 | + } | |
170 | + } | |
171 | + | |
172 | + | |
173 | + | |
174 | + | |
175 | + | |
176 | + } | |
177 | +} |
+++ KHPANEL/FormHTPanel_1.Designer.cs
... | ... | @@ -0,0 +1,466 @@ |
1 | + | |
2 | +namespace KHPANEL | |
3 | +{ | |
4 | + partial class FormHTPanel_1 | |
5 | + { | |
6 | + /// <summary> | |
7 | + /// Required designer variable. | |
8 | + /// </summary> | |
9 | + private System.ComponentModel.IContainer components = null; | |
10 | + | |
11 | + /// <summary> | |
12 | + /// Clean up any resources being used. | |
13 | + /// </summary> | |
14 | + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | |
15 | + protected override void Dispose(bool disposing) | |
16 | + { | |
17 | + if (disposing && (components != null)) | |
18 | + { | |
19 | + components.Dispose(); | |
20 | + } | |
21 | + base.Dispose(disposing); | |
22 | + } | |
23 | + | |
24 | + #region Windows Form Designer generated code | |
25 | + | |
26 | + /// <summary> | |
27 | + /// Required method for Designer support - do not modify | |
28 | + /// the contents of this method with the code editor. | |
29 | + /// </summary> | |
30 | + private void InitializeComponent() | |
31 | + { | |
32 | + this.components = new System.ComponentModel.Container(); | |
33 | + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormHTPanel_1)); | |
34 | + this.panel_Title = new System.Windows.Forms.Panel(); | |
35 | + this.label_Timer = new System.Windows.Forms.Label(); | |
36 | + this.label1 = new System.Windows.Forms.Label(); | |
37 | + this.timer_DataInput = new System.Windows.Forms.Timer(this.components); | |
38 | + this.textBox_State = new System.Windows.Forms.TextBox(); | |
39 | + this.timer_Time = new System.Windows.Forms.Timer(this.components); | |
40 | + this.ucTempControl15 = new KHPANEL.ucTempControl(); | |
41 | + this.ucTempControl16 = new KHPANEL.ucTempControl(); | |
42 | + this.ucTempControl17 = new KHPANEL.ucTempControl(); | |
43 | + this.ucTempControl18 = new KHPANEL.ucTempControl(); | |
44 | + this.ucTempControl19 = new KHPANEL.ucTempControl(); | |
45 | + this.ucTempControl20 = new KHPANEL.ucTempControl(); | |
46 | + this.ucTempControl21 = new KHPANEL.ucTempControl(); | |
47 | + this.ucTempControl8 = new KHPANEL.ucTempControl(); | |
48 | + this.ucTempControl9 = new KHPANEL.ucTempControl(); | |
49 | + this.ucTempControl10 = new KHPANEL.ucTempControl(); | |
50 | + this.ucTempControl11 = new KHPANEL.ucTempControl(); | |
51 | + this.ucTempControl12 = new KHPANEL.ucTempControl(); | |
52 | + this.ucTempControl13 = new KHPANEL.ucTempControl(); | |
53 | + this.ucTempControl14 = new KHPANEL.ucTempControl(); | |
54 | + this.ucTempControl7 = new KHPANEL.ucTempControl(); | |
55 | + this.ucTempControl6 = new KHPANEL.ucTempControl(); | |
56 | + this.ucTempControl5 = new KHPANEL.ucTempControl(); | |
57 | + this.ucTempControl4 = new KHPANEL.ucTempControl(); | |
58 | + this.ucTempControl3 = new KHPANEL.ucTempControl(); | |
59 | + this.ucTempControl2 = new KHPANEL.ucTempControl(); | |
60 | + this.ucTempControl1 = new KHPANEL.ucTempControl(); | |
61 | + this.panel_Title.SuspendLayout(); | |
62 | + this.SuspendLayout(); | |
63 | + // | |
64 | + // panel_Title | |
65 | + // | |
66 | + this.panel_Title.BackgroundImage = global::KHPANEL.Properties.Resources.Title; | |
67 | + this.panel_Title.Controls.Add(this.label_Timer); | |
68 | + this.panel_Title.Controls.Add(this.label1); | |
69 | + this.panel_Title.Dock = System.Windows.Forms.DockStyle.Top; | |
70 | + this.panel_Title.Location = new System.Drawing.Point(0, 0); | |
71 | + this.panel_Title.Name = "panel_Title"; | |
72 | + this.panel_Title.Size = new System.Drawing.Size(1920, 105); | |
73 | + this.panel_Title.TabIndex = 0; | |
74 | + this.panel_Title.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint); | |
75 | + // | |
76 | + // label_Timer | |
77 | + // | |
78 | + this.label_Timer.AutoSize = true; | |
79 | + this.label_Timer.BackColor = System.Drawing.Color.Transparent; | |
80 | + this.label_Timer.Font = new System.Drawing.Font("Calibri", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |
81 | + this.label_Timer.ForeColor = System.Drawing.Color.LightGray; | |
82 | + this.label_Timer.Location = new System.Drawing.Point(1536, 35); | |
83 | + this.label_Timer.Name = "label_Timer"; | |
84 | + this.label_Timer.Size = new System.Drawing.Size(245, 39); | |
85 | + this.label_Timer.TabIndex = 1; | |
86 | + this.label_Timer.Text = "0000-00-00 00:00"; | |
87 | + // | |
88 | + // label1 | |
89 | + // | |
90 | + this.label1.AutoSize = true; | |
91 | + this.label1.BackColor = System.Drawing.Color.Transparent; | |
92 | + this.label1.Font = new System.Drawing.Font("맑은 고딕", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | |
93 | + this.label1.ForeColor = System.Drawing.Color.LightGray; | |
94 | + this.label1.Location = new System.Drawing.Point(870, 27); | |
95 | + this.label1.Name = "label1"; | |
96 | + this.label1.Size = new System.Drawing.Size(212, 45); | |
97 | + this.label1.TabIndex = 0; | |
98 | + this.label1.Text = "가동생산현황"; | |
99 | + // | |
100 | + // timer_DataInput | |
101 | + // | |
102 | + this.timer_DataInput.Enabled = true; | |
103 | + this.timer_DataInput.Interval = 10000; | |
104 | + this.timer_DataInput.Tick += new System.EventHandler(this.timer_DataInput_Tick); | |
105 | + // | |
106 | + // textBox_State | |
107 | + // | |
108 | + this.textBox_State.Location = new System.Drawing.Point(1758, 767); | |
109 | + this.textBox_State.Multiline = true; | |
110 | + this.textBox_State.Name = "textBox_State"; | |
111 | + this.textBox_State.Size = new System.Drawing.Size(328, 283); | |
112 | + this.textBox_State.TabIndex = 22; | |
113 | + this.textBox_State.Visible = false; | |
114 | + // | |
115 | + // timer_Time | |
116 | + // | |
117 | + this.timer_Time.Enabled = true; | |
118 | + this.timer_Time.Interval = 1000; | |
119 | + this.timer_Time.Tick += new System.EventHandler(this.timer_Time_Tick); | |
120 | + // | |
121 | + // ucTempControl15 | |
122 | + // | |
123 | + this.ucTempControl15.BackColor = System.Drawing.Color.Transparent; | |
124 | + this.ucTempControl15.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl15.BackgroundImage"))); | |
125 | + this.ucTempControl15.LabelText = "HBT01"; | |
126 | + this.ucTempControl15.Location = new System.Drawing.Point(102, 749); | |
127 | + this.ucTempControl15.Name = "ucTempControl15"; | |
128 | + this.ucTempControl15.Size = new System.Drawing.Size(192, 242); | |
129 | + this.ucTempControl15.State = 1; | |
130 | + this.ucTempControl15.TabIndex = 21; | |
131 | + this.ucTempControl15.Temp = "Null"; | |
132 | + this.ucTempControl15.Time = "Null"; | |
133 | + // | |
134 | + // ucTempControl16 | |
135 | + // | |
136 | + this.ucTempControl16.BackColor = System.Drawing.Color.Transparent; | |
137 | + this.ucTempControl16.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl16.BackgroundImage"))); | |
138 | + this.ucTempControl16.LabelText = "HBT01"; | |
139 | + this.ucTempControl16.Location = new System.Drawing.Point(354, 749); | |
140 | + this.ucTempControl16.Name = "ucTempControl16"; | |
141 | + this.ucTempControl16.Size = new System.Drawing.Size(192, 242); | |
142 | + this.ucTempControl16.State = 1; | |
143 | + this.ucTempControl16.TabIndex = 20; | |
144 | + this.ucTempControl16.Temp = "Null"; | |
145 | + this.ucTempControl16.Time = "Null"; | |
146 | + // | |
147 | + // ucTempControl17 | |
148 | + // | |
149 | + this.ucTempControl17.BackColor = System.Drawing.Color.Transparent; | |
150 | + this.ucTempControl17.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl17.BackgroundImage"))); | |
151 | + this.ucTempControl17.LabelText = "HBT01"; | |
152 | + this.ucTempControl17.Location = new System.Drawing.Point(606, 749); | |
153 | + this.ucTempControl17.Name = "ucTempControl17"; | |
154 | + this.ucTempControl17.Size = new System.Drawing.Size(192, 242); | |
155 | + this.ucTempControl17.State = 0; | |
156 | + this.ucTempControl17.TabIndex = 19; | |
157 | + this.ucTempControl17.Temp = "Null"; | |
158 | + this.ucTempControl17.Time = "Null"; | |
159 | + // | |
160 | + // ucTempControl18 | |
161 | + // | |
162 | + this.ucTempControl18.BackColor = System.Drawing.Color.Transparent; | |
163 | + this.ucTempControl18.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl18.BackgroundImage"))); | |
164 | + this.ucTempControl18.LabelText = "HBT01"; | |
165 | + this.ucTempControl18.Location = new System.Drawing.Point(858, 749); | |
166 | + this.ucTempControl18.Name = "ucTempControl18"; | |
167 | + this.ucTempControl18.Size = new System.Drawing.Size(192, 242); | |
168 | + this.ucTempControl18.State = 0; | |
169 | + this.ucTempControl18.TabIndex = 18; | |
170 | + this.ucTempControl18.Temp = "Null"; | |
171 | + this.ucTempControl18.Time = "Null"; | |
172 | + this.ucTempControl18.Visible = false; | |
173 | + // | |
174 | + // ucTempControl19 | |
175 | + // | |
176 | + this.ucTempControl19.BackColor = System.Drawing.Color.Transparent; | |
177 | + this.ucTempControl19.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl19.BackgroundImage"))); | |
178 | + this.ucTempControl19.LabelText = "HBT01"; | |
179 | + this.ucTempControl19.Location = new System.Drawing.Point(1110, 749); | |
180 | + this.ucTempControl19.Name = "ucTempControl19"; | |
181 | + this.ucTempControl19.Size = new System.Drawing.Size(192, 242); | |
182 | + this.ucTempControl19.State = 1; | |
183 | + this.ucTempControl19.TabIndex = 17; | |
184 | + this.ucTempControl19.Temp = "Null"; | |
185 | + this.ucTempControl19.Time = "Null"; | |
186 | + // | |
187 | + // ucTempControl20 | |
188 | + // | |
189 | + this.ucTempControl20.BackColor = System.Drawing.Color.Transparent; | |
190 | + this.ucTempControl20.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl20.BackgroundImage"))); | |
191 | + this.ucTempControl20.LabelText = "HBT01"; | |
192 | + this.ucTempControl20.Location = new System.Drawing.Point(1362, 749); | |
193 | + this.ucTempControl20.Name = "ucTempControl20"; | |
194 | + this.ucTempControl20.Size = new System.Drawing.Size(192, 242); | |
195 | + this.ucTempControl20.State = 1; | |
196 | + this.ucTempControl20.TabIndex = 16; | |
197 | + this.ucTempControl20.Temp = "Null"; | |
198 | + this.ucTempControl20.Time = "Null"; | |
199 | + // | |
200 | + // ucTempControl21 | |
201 | + // | |
202 | + this.ucTempControl21.BackColor = System.Drawing.Color.Transparent; | |
203 | + this.ucTempControl21.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl21.BackgroundImage"))); | |
204 | + this.ucTempControl21.LabelText = "HBT01"; | |
205 | + this.ucTempControl21.Location = new System.Drawing.Point(1614, 749); | |
206 | + this.ucTempControl21.Name = "ucTempControl21"; | |
207 | + this.ucTempControl21.Size = new System.Drawing.Size(192, 242); | |
208 | + this.ucTempControl21.State = 0; | |
209 | + this.ucTempControl21.TabIndex = 15; | |
210 | + this.ucTempControl21.Temp = "Null"; | |
211 | + this.ucTempControl21.Time = "Null"; | |
212 | + this.ucTempControl21.Visible = false; | |
213 | + // | |
214 | + // ucTempControl8 | |
215 | + // | |
216 | + this.ucTempControl8.BackColor = System.Drawing.Color.Transparent; | |
217 | + this.ucTempControl8.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl8.BackgroundImage"))); | |
218 | + this.ucTempControl8.LabelText = "HBT01"; | |
219 | + this.ucTempControl8.Location = new System.Drawing.Point(102, 464); | |
220 | + this.ucTempControl8.Name = "ucTempControl8"; | |
221 | + this.ucTempControl8.Size = new System.Drawing.Size(192, 242); | |
222 | + this.ucTempControl8.State = 1; | |
223 | + this.ucTempControl8.TabIndex = 14; | |
224 | + this.ucTempControl8.Temp = "Null"; | |
225 | + this.ucTempControl8.Time = "Null"; | |
226 | + // | |
227 | + // ucTempControl9 | |
228 | + // | |
229 | + this.ucTempControl9.BackColor = System.Drawing.Color.Transparent; | |
230 | + this.ucTempControl9.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl9.BackgroundImage"))); | |
231 | + this.ucTempControl9.LabelText = "HBT01"; | |
232 | + this.ucTempControl9.Location = new System.Drawing.Point(354, 464); | |
233 | + this.ucTempControl9.Name = "ucTempControl9"; | |
234 | + this.ucTempControl9.Size = new System.Drawing.Size(192, 242); | |
235 | + this.ucTempControl9.State = 1; | |
236 | + this.ucTempControl9.TabIndex = 13; | |
237 | + this.ucTempControl9.Temp = "Null"; | |
238 | + this.ucTempControl9.Time = "Null"; | |
239 | + // | |
240 | + // ucTempControl10 | |
241 | + // | |
242 | + this.ucTempControl10.BackColor = System.Drawing.Color.Transparent; | |
243 | + this.ucTempControl10.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl10.BackgroundImage"))); | |
244 | + this.ucTempControl10.LabelText = "HBT01"; | |
245 | + this.ucTempControl10.Location = new System.Drawing.Point(606, 464); | |
246 | + this.ucTempControl10.Name = "ucTempControl10"; | |
247 | + this.ucTempControl10.Size = new System.Drawing.Size(192, 242); | |
248 | + this.ucTempControl10.State = 1; | |
249 | + this.ucTempControl10.TabIndex = 12; | |
250 | + this.ucTempControl10.Temp = "Null"; | |
251 | + this.ucTempControl10.Time = "Null"; | |
252 | + // | |
253 | + // ucTempControl11 | |
254 | + // | |
255 | + this.ucTempControl11.BackColor = System.Drawing.Color.Transparent; | |
256 | + this.ucTempControl11.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl11.BackgroundImage"))); | |
257 | + this.ucTempControl11.LabelText = "HBT01"; | |
258 | + this.ucTempControl11.Location = new System.Drawing.Point(858, 464); | |
259 | + this.ucTempControl11.Name = "ucTempControl11"; | |
260 | + this.ucTempControl11.Size = new System.Drawing.Size(192, 242); | |
261 | + this.ucTempControl11.State = 1; | |
262 | + this.ucTempControl11.TabIndex = 11; | |
263 | + this.ucTempControl11.Temp = "Null"; | |
264 | + this.ucTempControl11.Time = "Null"; | |
265 | + // | |
266 | + // ucTempControl12 | |
267 | + // | |
268 | + this.ucTempControl12.BackColor = System.Drawing.Color.Transparent; | |
269 | + this.ucTempControl12.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl12.BackgroundImage"))); | |
270 | + this.ucTempControl12.LabelText = "HBT01"; | |
271 | + this.ucTempControl12.Location = new System.Drawing.Point(1110, 464); | |
272 | + this.ucTempControl12.Name = "ucTempControl12"; | |
273 | + this.ucTempControl12.Size = new System.Drawing.Size(192, 242); | |
274 | + this.ucTempControl12.State = 1; | |
275 | + this.ucTempControl12.TabIndex = 10; | |
276 | + this.ucTempControl12.Temp = "Null"; | |
277 | + this.ucTempControl12.Time = "Null"; | |
278 | + // | |
279 | + // ucTempControl13 | |
280 | + // | |
281 | + this.ucTempControl13.BackColor = System.Drawing.Color.Transparent; | |
282 | + this.ucTempControl13.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl13.BackgroundImage"))); | |
283 | + this.ucTempControl13.LabelText = "HBT01"; | |
284 | + this.ucTempControl13.Location = new System.Drawing.Point(1362, 464); | |
285 | + this.ucTempControl13.Name = "ucTempControl13"; | |
286 | + this.ucTempControl13.Size = new System.Drawing.Size(192, 242); | |
287 | + this.ucTempControl13.State = 1; | |
288 | + this.ucTempControl13.TabIndex = 9; | |
289 | + this.ucTempControl13.Temp = "Null"; | |
290 | + this.ucTempControl13.Time = "Null"; | |
291 | + // | |
292 | + // ucTempControl14 | |
293 | + // | |
294 | + this.ucTempControl14.BackColor = System.Drawing.Color.Transparent; | |
295 | + this.ucTempControl14.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl14.BackgroundImage"))); | |
296 | + this.ucTempControl14.LabelText = "HBT01"; | |
297 | + this.ucTempControl14.Location = new System.Drawing.Point(1614, 464); | |
298 | + this.ucTempControl14.Name = "ucTempControl14"; | |
299 | + this.ucTempControl14.Size = new System.Drawing.Size(192, 242); | |
300 | + this.ucTempControl14.State = 1; | |
301 | + this.ucTempControl14.TabIndex = 8; | |
302 | + this.ucTempControl14.Temp = "Null"; | |
303 | + this.ucTempControl14.Time = "Null"; | |
304 | + // | |
305 | + // ucTempControl7 | |
306 | + // | |
307 | + this.ucTempControl7.BackColor = System.Drawing.Color.Transparent; | |
308 | + this.ucTempControl7.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl7.BackgroundImage"))); | |
309 | + this.ucTempControl7.LabelText = "HBT01"; | |
310 | + this.ucTempControl7.Location = new System.Drawing.Point(1614, 180); | |
311 | + this.ucTempControl7.Name = "ucTempControl7"; | |
312 | + this.ucTempControl7.Size = new System.Drawing.Size(192, 242); | |
313 | + this.ucTempControl7.State = 1; | |
314 | + this.ucTempControl7.TabIndex = 7; | |
315 | + this.ucTempControl7.Temp = "Null"; | |
316 | + this.ucTempControl7.Time = "Null"; | |
317 | + // | |
318 | + // ucTempControl6 | |
319 | + // | |
320 | + this.ucTempControl6.BackColor = System.Drawing.Color.Transparent; | |
321 | + this.ucTempControl6.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl6.BackgroundImage"))); | |
322 | + this.ucTempControl6.LabelText = "HBT01"; | |
323 | + this.ucTempControl6.Location = new System.Drawing.Point(1362, 180); | |
324 | + this.ucTempControl6.Name = "ucTempControl6"; | |
325 | + this.ucTempControl6.Size = new System.Drawing.Size(192, 242); | |
326 | + this.ucTempControl6.State = 1; | |
327 | + this.ucTempControl6.TabIndex = 6; | |
328 | + this.ucTempControl6.Temp = "Null"; | |
329 | + this.ucTempControl6.Time = "Null"; | |
330 | + // | |
331 | + // ucTempControl5 | |
332 | + // | |
333 | + this.ucTempControl5.BackColor = System.Drawing.Color.Transparent; | |
334 | + this.ucTempControl5.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl5.BackgroundImage"))); | |
335 | + this.ucTempControl5.LabelText = "HBT01"; | |
336 | + this.ucTempControl5.Location = new System.Drawing.Point(1110, 180); | |
337 | + this.ucTempControl5.Name = "ucTempControl5"; | |
338 | + this.ucTempControl5.Size = new System.Drawing.Size(192, 242); | |
339 | + this.ucTempControl5.State = 0; | |
340 | + this.ucTempControl5.TabIndex = 5; | |
341 | + this.ucTempControl5.Temp = "Null"; | |
342 | + this.ucTempControl5.Time = "Null"; | |
343 | + // | |
344 | + // ucTempControl4 | |
345 | + // | |
346 | + this.ucTempControl4.BackColor = System.Drawing.Color.Transparent; | |
347 | + this.ucTempControl4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl4.BackgroundImage"))); | |
348 | + this.ucTempControl4.LabelText = "HBT01"; | |
349 | + this.ucTempControl4.Location = new System.Drawing.Point(858, 180); | |
350 | + this.ucTempControl4.Name = "ucTempControl4"; | |
351 | + this.ucTempControl4.Size = new System.Drawing.Size(192, 242); | |
352 | + this.ucTempControl4.State = 1; | |
353 | + this.ucTempControl4.TabIndex = 4; | |
354 | + this.ucTempControl4.Temp = "Null"; | |
355 | + this.ucTempControl4.Time = "Null"; | |
356 | + // | |
357 | + // ucTempControl3 | |
358 | + // | |
359 | + this.ucTempControl3.BackColor = System.Drawing.Color.Transparent; | |
360 | + this.ucTempControl3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl3.BackgroundImage"))); | |
361 | + this.ucTempControl3.LabelText = "HBT01"; | |
362 | + this.ucTempControl3.Location = new System.Drawing.Point(606, 180); | |
363 | + this.ucTempControl3.Name = "ucTempControl3"; | |
364 | + this.ucTempControl3.Size = new System.Drawing.Size(192, 242); | |
365 | + this.ucTempControl3.State = 1; | |
366 | + this.ucTempControl3.TabIndex = 3; | |
367 | + this.ucTempControl3.Temp = "Null"; | |
368 | + this.ucTempControl3.Time = "Null"; | |
369 | + // | |
370 | + // ucTempControl2 | |
371 | + // | |
372 | + this.ucTempControl2.BackColor = System.Drawing.Color.Transparent; | |
373 | + this.ucTempControl2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl2.BackgroundImage"))); | |
374 | + this.ucTempControl2.LabelText = "HBT01"; | |
375 | + this.ucTempControl2.Location = new System.Drawing.Point(354, 180); | |
376 | + this.ucTempControl2.Name = "ucTempControl2"; | |
377 | + this.ucTempControl2.Size = new System.Drawing.Size(192, 242); | |
378 | + this.ucTempControl2.State = 1; | |
379 | + this.ucTempControl2.TabIndex = 2; | |
380 | + this.ucTempControl2.Temp = "Null"; | |
381 | + this.ucTempControl2.Time = "Null"; | |
382 | + // | |
383 | + // ucTempControl1 | |
384 | + // | |
385 | + this.ucTempControl1.BackColor = System.Drawing.Color.Transparent; | |
386 | + this.ucTempControl1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("ucTempControl1.BackgroundImage"))); | |
387 | + this.ucTempControl1.LabelText = "HBT01"; | |
388 | + this.ucTempControl1.Location = new System.Drawing.Point(102, 180); | |
389 | + this.ucTempControl1.Name = "ucTempControl1"; | |
390 | + this.ucTempControl1.Size = new System.Drawing.Size(192, 242); | |
391 | + this.ucTempControl1.State = 1; | |
392 | + this.ucTempControl1.TabIndex = 1; | |
393 | + this.ucTempControl1.Temp = "Null"; | |
394 | + this.ucTempControl1.Time = "Null"; | |
395 | + // | |
396 | + // FormHTPanel_1 | |
397 | + // | |
398 | + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); | |
399 | + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |
400 | + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60))))); | |
401 | + this.ClientSize = new System.Drawing.Size(1920, 1080); | |
402 | + this.Controls.Add(this.textBox_State); | |
403 | + this.Controls.Add(this.ucTempControl15); | |
404 | + this.Controls.Add(this.ucTempControl16); | |
405 | + this.Controls.Add(this.ucTempControl17); | |
406 | + this.Controls.Add(this.ucTempControl18); | |
407 | + this.Controls.Add(this.ucTempControl19); | |
408 | + this.Controls.Add(this.ucTempControl20); | |
409 | + this.Controls.Add(this.ucTempControl21); | |
410 | + this.Controls.Add(this.ucTempControl8); | |
411 | + this.Controls.Add(this.ucTempControl9); | |
412 | + this.Controls.Add(this.ucTempControl10); | |
413 | + this.Controls.Add(this.ucTempControl11); | |
414 | + this.Controls.Add(this.ucTempControl12); | |
415 | + this.Controls.Add(this.ucTempControl13); | |
416 | + this.Controls.Add(this.ucTempControl14); | |
417 | + this.Controls.Add(this.ucTempControl7); | |
418 | + this.Controls.Add(this.ucTempControl6); | |
419 | + this.Controls.Add(this.ucTempControl5); | |
420 | + this.Controls.Add(this.ucTempControl4); | |
421 | + this.Controls.Add(this.ucTempControl3); | |
422 | + this.Controls.Add(this.ucTempControl2); | |
423 | + this.Controls.Add(this.ucTempControl1); | |
424 | + this.Controls.Add(this.panel_Title); | |
425 | + this.ForeColor = System.Drawing.Color.Black; | |
426 | + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; | |
427 | + this.Name = "FormHTPanel_1"; | |
428 | + this.Text = "FormHTPanel_1"; | |
429 | + this.panel_Title.ResumeLayout(false); | |
430 | + this.panel_Title.PerformLayout(); | |
431 | + this.ResumeLayout(false); | |
432 | + this.PerformLayout(); | |
433 | + | |
434 | + } | |
435 | + | |
436 | + #endregion | |
437 | + | |
438 | + private System.Windows.Forms.Panel panel_Title; | |
439 | + private System.Windows.Forms.Label label1; | |
440 | + private ucTempControl ucTempControl1; | |
441 | + private ucTempControl ucTempControl2; | |
442 | + private ucTempControl ucTempControl3; | |
443 | + private ucTempControl ucTempControl4; | |
444 | + private ucTempControl ucTempControl5; | |
445 | + private ucTempControl ucTempControl6; | |
446 | + private ucTempControl ucTempControl7; | |
447 | + private ucTempControl ucTempControl8; | |
448 | + private ucTempControl ucTempControl9; | |
449 | + private ucTempControl ucTempControl10; | |
450 | + private ucTempControl ucTempControl11; | |
451 | + private ucTempControl ucTempControl12; | |
452 | + private ucTempControl ucTempControl13; | |
453 | + private ucTempControl ucTempControl14; | |
454 | + private ucTempControl ucTempControl15; | |
455 | + private ucTempControl ucTempControl16; | |
456 | + private ucTempControl ucTempControl17; | |
457 | + private ucTempControl ucTempControl18; | |
458 | + private ucTempControl ucTempControl19; | |
459 | + private ucTempControl ucTempControl20; | |
460 | + private ucTempControl ucTempControl21; | |
461 | + private System.Windows.Forms.Timer timer_DataInput; | |
462 | + private System.Windows.Forms.TextBox textBox_State; | |
463 | + private System.Windows.Forms.Label label_Timer; | |
464 | + private System.Windows.Forms.Timer timer_Time; | |
465 | + } | |
466 | +}(No newline at end of file) |
+++ KHPANEL/FormHTPanel_1.cs
... | ... | @@ -0,0 +1,649 @@ |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.ComponentModel; | |
4 | +using System.Data; | |
5 | +using System.Drawing; | |
6 | +using System.Linq; | |
7 | +using System.Text; | |
8 | +using System.Threading.Tasks; | |
9 | +using System.Windows.Forms; | |
10 | + | |
11 | +namespace KHPANEL | |
12 | +{ | |
13 | + public partial class FormHTPanel_1 : Form | |
14 | + { | |
15 | + public FormHTPanel_1() | |
16 | + { | |
17 | + InitializeComponent(); | |
18 | + } | |
19 | + | |
20 | + private void panel1_Paint(object sender, PaintEventArgs e) | |
21 | + { | |
22 | + | |
23 | + } | |
24 | + | |
25 | + private void timer_DataInput_Tick(object sender, EventArgs e) | |
26 | + { | |
27 | + | |
28 | + if (DBConnectionSingleton.Instance().isConnect()) | |
29 | + { | |
30 | + DataReading(); | |
31 | + } | |
32 | + else | |
33 | + { | |
34 | + textBox_State.Text = "DB_Connected Error\r\n"; | |
35 | + } | |
36 | + //ucTempControl1.LabelText = "HBT_1"; | |
37 | + //ucTempControl2.LabelText = "HBT_2"; | |
38 | + //ucTempControl3.LabelText = "HBT_3"; | |
39 | + //ucTempControl4.LabelText = "HBT_5"; | |
40 | + //ucTempControl5.LabelText = "HBT_6"; | |
41 | + //ucTempControl6.LabelText = "HBT_7"; | |
42 | + //ucTempControl7.LabelText = "HBT_8"; | |
43 | + //ucTempControl8.LabelText = "HBT_9"; | |
44 | + //ucTempControl9.LabelText = "HBT_10"; | |
45 | + //ucTempControl10.LabelText = "HBT_11"; | |
46 | + //ucTempControl11.LabelText = "HBT_12"; | |
47 | + //ucTempControl12.LabelText = "HBT_14"; | |
48 | + //ucTempControl13.LabelText = "HBT_15"; | |
49 | + //ucTempControl14.LabelText = "HBT_16"; | |
50 | + //ucTempControl15.LabelText = "HBT_17"; | |
51 | + //ucTempControl16.LabelText = "HBT_18"; | |
52 | + //ucTempControl17.LabelText = "HBT_19"; | |
53 | + //ucTempControl18.LabelText = "HBT_20"; | |
54 | + //ucTempControl19.LabelText = "HBT_21"; | |
55 | + //ucTempControl20.LabelText = "HBT_24"; | |
56 | + //ucTempControl21.LabelText = "HBT_?"; | |
57 | + | |
58 | + | |
59 | + | |
60 | + | |
61 | + //ucTempControl1.Temp = "38"; | |
62 | + //ucTempControl2.Temp = "39.4"; | |
63 | + //ucTempControl3.Temp = "31.7"; | |
64 | + //ucTempControl4.Temp = "31.5"; | |
65 | + //ucTempControl5.Temp = "24.6"; | |
66 | + //ucTempControl6.Temp = "37.9"; | |
67 | + //ucTempControl7.Temp = "30.3"; | |
68 | + //ucTempControl8.Temp = "19.9"; | |
69 | + //ucTempControl9.Temp = "23.2"; | |
70 | + //ucTempControl10.Temp = "30"; | |
71 | + //ucTempControl11.Temp = "29"; | |
72 | + //ucTempControl12.Temp = "21.8"; | |
73 | + //ucTempControl13.Temp = "34.7"; | |
74 | + //ucTempControl14.Temp = "31.6"; | |
75 | + //ucTempControl15.Temp = "25.8"; | |
76 | + //ucTempControl16.Temp = "45.2"; | |
77 | + //ucTempControl17.Temp = "34"; | |
78 | + //ucTempControl18.Temp = "0"; | |
79 | + //ucTempControl19.Temp = "24.5"; | |
80 | + //ucTempControl20.Temp = "29.3"; | |
81 | + //ucTempControl21.Temp = "HBT_?"; | |
82 | + | |
83 | + | |
84 | + //ucTempControl1.labelControl_SetTemp.Text = "38˚"; | |
85 | + //ucTempControl2.labelControl_SetTemp.Text = "40˚"; | |
86 | + //ucTempControl3.labelControl_SetTemp.Text = "32˚"; | |
87 | + //ucTempControl4.labelControl_SetTemp.Text = "32˚"; | |
88 | + //ucTempControl5.labelControl_SetTemp.Text = "0˚"; | |
89 | + //ucTempControl6.labelControl_SetTemp.Text = "38˚"; | |
90 | + //ucTempControl7.labelControl_SetTemp.Text = "30˚"; | |
91 | + //ucTempControl8.labelControl_SetTemp.Text = "20˚"; | |
92 | + //ucTempControl9.labelControl_SetTemp.Text = "24˚"; | |
93 | + //ucTempControl10.labelControl_SetTemp.Text = "30˚"; | |
94 | + //ucTempControl11.labelControl_SetTemp.Text = "30˚"; | |
95 | + //ucTempControl12.labelControl_SetTemp.Text = "22˚"; | |
96 | + //ucTempControl13.labelControl_SetTemp.Text = "35˚"; | |
97 | + //ucTempControl14.labelControl_SetTemp.Text = "32˚"; | |
98 | + //ucTempControl15.labelControl_SetTemp.Text = "30˚"; | |
99 | + //ucTempControl16.labelControl_SetTemp.Text = "45˚"; | |
100 | + //ucTempControl17.labelControl_SetTemp.Text = "0˚"; | |
101 | + //ucTempControl18.labelControl_SetTemp.Text = "0˚"; | |
102 | + //ucTempControl19.labelControl_SetTemp.Text = "30˚"; | |
103 | + //ucTempControl20.labelControl_SetTemp.Text = "30˚"; | |
104 | + //ucTempControl21.labelControl_SetTemp.Text = "HBT_?"; | |
105 | + | |
106 | + | |
107 | + | |
108 | + | |
109 | + | |
110 | + //ucTempControl1.Time = "15"; | |
111 | + //ucTempControl2.Time = "454"; | |
112 | + //ucTempControl3.Time = "225"; | |
113 | + //ucTempControl4.Time = "299"; | |
114 | + //ucTempControl5.Time = "0"; | |
115 | + //ucTempControl6.Time = "372"; | |
116 | + //ucTempControl7.Time = "362"; | |
117 | + //ucTempControl8.Time = "361"; | |
118 | + //ucTempControl9.Time = "328"; | |
119 | + //ucTempControl10.Time = "355"; | |
120 | + //ucTempControl11.Time = "355"; | |
121 | + //ucTempControl12.Time = "146"; | |
122 | + //ucTempControl13.Time = "355"; | |
123 | + //ucTempControl14.Time = "489"; | |
124 | + //ucTempControl15.Time = "36"; | |
125 | + //ucTempControl16.Time = "217"; | |
126 | + //ucTempControl17.Time = "0"; | |
127 | + //ucTempControl18.Time = "0"; | |
128 | + //ucTempControl19.Time = "453"; | |
129 | + //ucTempControl20.Time = "363"; | |
130 | + //ucTempControl21.Time = "HBT_?"; | |
131 | + | |
132 | + | |
133 | + //ucTempControl1.labelControl_SetTime.Text = "600분"; | |
134 | + //ucTempControl2.labelControl_SetTime.Text = "600분"; | |
135 | + //ucTempControl3.labelControl_SetTime.Text = "600분"; | |
136 | + //ucTempControl4.labelControl_SetTime.Text = "600분"; | |
137 | + //ucTempControl5.labelControl_SetTime.Text = "0분"; | |
138 | + //ucTempControl6.labelControl_SetTime.Text = "600분"; | |
139 | + //ucTempControl7.labelControl_SetTime.Text = "600분"; | |
140 | + //ucTempControl8.labelControl_SetTime.Text = "600분"; | |
141 | + //ucTempControl9.labelControl_SetTime.Text = "1000분"; | |
142 | + //ucTempControl10.labelControl_SetTime.Text = "1100분"; | |
143 | + //ucTempControl11.labelControl_SetTime.Text = "400분"; | |
144 | + //ucTempControl12.labelControl_SetTime.Text = "300분"; | |
145 | + //ucTempControl13.labelControl_SetTime.Text = "500분"; | |
146 | + //ucTempControl14.labelControl_SetTime.Text = "600분"; | |
147 | + //ucTempControl15.labelControl_SetTime.Text = "120분"; | |
148 | + //ucTempControl16.labelControl_SetTime.Text = "300분"; | |
149 | + //ucTempControl17.labelControl_SetTime.Text = "0분"; | |
150 | + //ucTempControl18.labelControl_SetTime.Text = "0분"; | |
151 | + //ucTempControl19.labelControl_SetTime.Text = "600분"; | |
152 | + //ucTempControl20.labelControl_SetTime.Text = "600분"; | |
153 | + //ucTempControl21.labelControl_SetTime.Text = "HBT_?"; | |
154 | + | |
155 | + | |
156 | + | |
157 | + | |
158 | + //ucTempControl1.labelControl_SetTemp.Visible = true; | |
159 | + //ucTempControl2.labelControl_SetTemp.Visible = true; | |
160 | + //ucTempControl3.labelControl_SetTemp.Visible = true; | |
161 | + //ucTempControl4.labelControl_SetTemp.Visible = true; | |
162 | + //ucTempControl5.labelControl_SetTemp.Visible = true; | |
163 | + //ucTempControl6.labelControl_SetTemp.Visible = true; | |
164 | + //ucTempControl7.labelControl_SetTemp.Visible = true; | |
165 | + //ucTempControl8.labelControl_SetTemp.Visible = true; | |
166 | + //ucTempControl9.labelControl_SetTemp.Visible = true; | |
167 | + //ucTempControl10.labelControl_SetTemp.Visible = true; | |
168 | + //ucTempControl11.labelControl_SetTemp.Visible = true; | |
169 | + //ucTempControl12.labelControl_SetTemp.Visible = true; | |
170 | + //ucTempControl13.labelControl_SetTemp.Visible = true; | |
171 | + //ucTempControl14.labelControl_SetTemp.Visible = true; | |
172 | + //ucTempControl15.labelControl_SetTemp.Visible = true; | |
173 | + //ucTempControl16.labelControl_SetTemp.Visible = true; | |
174 | + //ucTempControl17.labelControl_SetTemp.Visible = true; | |
175 | + //ucTempControl18.labelControl_SetTemp.Visible = true; | |
176 | + //ucTempControl19.labelControl_SetTemp.Visible = true; | |
177 | + //ucTempControl20.labelControl_SetTemp.Visible = true; | |
178 | + //ucTempControl21.labelControl_SetTemp.Visible = true; | |
179 | + | |
180 | + //ucTempControl1.labelControl_SetTime.Visible = true; | |
181 | + //ucTempControl2.labelControl_SetTime.Visible = true; | |
182 | + //ucTempControl3.labelControl_SetTime.Visible = true; | |
183 | + //ucTempControl4.labelControl_SetTime.Visible = true; | |
184 | + //ucTempControl5.labelControl_SetTime.Visible = true; | |
185 | + //ucTempControl6.labelControl_SetTime.Visible = true; | |
186 | + //ucTempControl7.labelControl_SetTime.Visible = true; | |
187 | + //ucTempControl8.labelControl_SetTime.Visible = true; | |
188 | + //ucTempControl9.labelControl_SetTime.Visible = true; | |
189 | + //ucTempControl10.labelControl_SetTime.Visible = true; | |
190 | + //ucTempControl11.labelControl_SetTime.Visible = true; | |
191 | + //ucTempControl12.labelControl_SetTime.Visible = true; | |
192 | + //ucTempControl13.labelControl_SetTime.Visible = true; | |
193 | + //ucTempControl14.labelControl_SetTime.Visible = true; | |
194 | + //ucTempControl15.labelControl_SetTime.Visible = true; | |
195 | + //ucTempControl16.labelControl_SetTime.Visible = true; | |
196 | + //ucTempControl17.labelControl_SetTime.Visible = true; | |
197 | + //ucTempControl18.labelControl_SetTime.Visible = true; | |
198 | + //ucTempControl19.labelControl_SetTime.Visible = true; | |
199 | + //ucTempControl20.labelControl_SetTime.Visible = true; | |
200 | + //ucTempControl21.labelControl_SetTime.Visible = true; | |
201 | + | |
202 | + | |
203 | + } | |
204 | + | |
205 | + | |
206 | + public void DataReading() | |
207 | + { | |
208 | + if (!DBConnectionSingleton.Instance().isConnect()) | |
209 | + { | |
210 | + textBox_State.Text = "DB_Connected Error\r\n"; | |
211 | + return; | |
212 | + } | |
213 | + | |
214 | + textBox_State.Text = ""; | |
215 | + //DB 설비정보내에서 온도계 정보를 가져옵니다.[온도계는 CODE정보로 E03으로 저장되어있다] | |
216 | + DataTable dt = DBConnectionSingleton.Instance().GetSqlData("select r.MACH_CD,(r.REAL_DATA * m.VALUE_RATIO) REAL_DATA, m.MACH_NM, m.MACH_NO, c.WORK_ROUT_CD FROM T_HT_REAL_DATA r left join T_STD_MACH m on r.MACH_CD = m.MACH_CD and r.COMP_CD = m.COMP_CD" + | |
217 | + " left join T_STD_CODE c on c.NO_RMK = m.MACH_NO order by r.MACH_CD asc"); | |
218 | + | |
219 | + | |
220 | + textBox_State.Text += "DataReading...\r\n"; | |
221 | + | |
222 | + if (dt == null) return; | |
223 | + | |
224 | + | |
225 | + for(int i = 0; i< dt.Rows.Count; i ++) | |
226 | + { | |
227 | + if(dt.Rows[i]["MACH_NO"].ToString() == "520") | |
228 | + { | |
229 | + ucTempControl1.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
230 | + ucTempControl1.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
231 | + textBox_State.Text += "["+ dt.Rows[i]["MACH_NO"].ToString()+":"+ dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
232 | + continue; | |
233 | + } | |
234 | + if (dt.Rows[i]["MACH_NO"].ToString() == "521") | |
235 | + { | |
236 | + ucTempControl2.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
237 | + ucTempControl2.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
238 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
239 | + continue; | |
240 | + } | |
241 | + if (dt.Rows[i]["MACH_NO"].ToString() == "522") | |
242 | + { | |
243 | + ucTempControl3.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
244 | + ucTempControl3.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
245 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
246 | + continue; | |
247 | + } | |
248 | + if (dt.Rows[i]["MACH_NO"].ToString() == "523") | |
249 | + { | |
250 | + ucTempControl4.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
251 | + ucTempControl4.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
252 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
253 | + continue; | |
254 | + } | |
255 | + if (dt.Rows[i]["MACH_NO"].ToString() == "524") | |
256 | + { | |
257 | + ucTempControl5.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
258 | + ucTempControl5.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
259 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
260 | + continue; | |
261 | + } | |
262 | + if (dt.Rows[i]["MACH_NO"].ToString() == "525") | |
263 | + { | |
264 | + ucTempControl6.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
265 | + ucTempControl6.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
266 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
267 | + continue; | |
268 | + } | |
269 | + if (dt.Rows[i]["MACH_NO"].ToString() == "526") | |
270 | + { | |
271 | + ucTempControl7.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
272 | + ucTempControl7.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
273 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
274 | + continue; | |
275 | + } | |
276 | + if (dt.Rows[i]["MACH_NO"].ToString() == "527") | |
277 | + { | |
278 | + ucTempControl8.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
279 | + ucTempControl8.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
280 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
281 | + continue; | |
282 | + } | |
283 | + if (dt.Rows[i]["MACH_NO"].ToString() == "528") | |
284 | + { | |
285 | + ucTempControl9.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
286 | + ucTempControl9.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
287 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
288 | + continue; | |
289 | + } | |
290 | + if (dt.Rows[i]["MACH_NO"].ToString() == "529") | |
291 | + { | |
292 | + ucTempControl10.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
293 | + ucTempControl10.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
294 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
295 | + continue; | |
296 | + } | |
297 | + if (dt.Rows[i]["MACH_NO"].ToString() == "530") | |
298 | + { | |
299 | + ucTempControl11.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
300 | + ucTempControl11.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
301 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
302 | + continue; | |
303 | + } | |
304 | + if (dt.Rows[i]["MACH_NO"].ToString() == "531") | |
305 | + { | |
306 | + ucTempControl12.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
307 | + ucTempControl12.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
308 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
309 | + continue; | |
310 | + } | |
311 | + if (dt.Rows[i]["MACH_NO"].ToString() == "532") | |
312 | + { | |
313 | + ucTempControl13.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
314 | + ucTempControl13.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
315 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
316 | + continue; | |
317 | + } | |
318 | + if (dt.Rows[i]["MACH_NO"].ToString() == "533") | |
319 | + { | |
320 | + ucTempControl14.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
321 | + ucTempControl14.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
322 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
323 | + continue; | |
324 | + } | |
325 | + if (dt.Rows[i]["MACH_NO"].ToString() == "534") | |
326 | + { | |
327 | + ucTempControl15.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
328 | + ucTempControl15.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
329 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
330 | + continue; | |
331 | + } | |
332 | + if (dt.Rows[i]["MACH_NO"].ToString() == "535") | |
333 | + { | |
334 | + ucTempControl16.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
335 | + ucTempControl16.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
336 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
337 | + continue; | |
338 | + } | |
339 | + if (dt.Rows[i]["MACH_NO"].ToString() == "536") | |
340 | + { | |
341 | + ucTempControl17.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
342 | + ucTempControl17.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
343 | + textBox_State.Text += "[" + dt.Rows[i]["MACH_NO"].ToString() + ":" + dt.Rows[i]["REAL_DATA"].ToString() + "]"; | |
344 | + continue; | |
345 | + } | |
346 | + //if (dt.Rows[i]["MACH_NO"].ToString() == "537") | |
347 | + //{ | |
348 | + // ucTempControl18.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
349 | + // ucTempControl18.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
350 | + // continue; | |
351 | + //} | |
352 | + if (dt.Rows[i]["MACH_NO"].ToString() == "538") | |
353 | + { | |
354 | + ucTempControl19.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
355 | + ucTempControl19.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
356 | + continue; | |
357 | + } | |
358 | + if (dt.Rows[i]["MACH_NO"].ToString() == "539") | |
359 | + { | |
360 | + ucTempControl20.LabelText = dt.Rows[i]["WORK_ROUT_CD"].ToString(); | |
361 | + ucTempControl20.Temp = dt.Rows[i]["REAL_DATA"].ToString(); | |
362 | + continue; | |
363 | + } | |
364 | + | |
365 | + | |
366 | + if (dt.Rows[i]["MACH_NO"].ToString() == "600") | |
367 | + { | |
368 | + ucTempControl1.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
369 | + continue; | |
370 | + } | |
371 | + if (dt.Rows[i]["MACH_NO"].ToString() == "601") | |
372 | + { | |
373 | + ucTempControl2.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
374 | + continue; | |
375 | + } | |
376 | + if (dt.Rows[i]["MACH_NO"].ToString() == "602") | |
377 | + { | |
378 | + ucTempControl3.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
379 | + continue; | |
380 | + } | |
381 | + if (dt.Rows[i]["MACH_NO"].ToString() == "603") | |
382 | + { | |
383 | + ucTempControl4.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
384 | + continue; | |
385 | + } | |
386 | + if (dt.Rows[i]["MACH_NO"].ToString() == "604") | |
387 | + { | |
388 | + ucTempControl5.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
389 | + continue; | |
390 | + } | |
391 | + if (dt.Rows[i]["MACH_NO"].ToString() == "605") | |
392 | + { | |
393 | + ucTempControl6.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
394 | + continue; | |
395 | + } | |
396 | + if (dt.Rows[i]["MACH_NO"].ToString() == "606") | |
397 | + { | |
398 | + ucTempControl7.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
399 | + continue; | |
400 | + } | |
401 | + if (dt.Rows[i]["MACH_NO"].ToString() == "607") | |
402 | + { | |
403 | + ucTempControl8.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
404 | + continue; | |
405 | + } | |
406 | + if (dt.Rows[i]["MACH_NO"].ToString() == "608") | |
407 | + { | |
408 | + ucTempControl9.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
409 | + continue; | |
410 | + } | |
411 | + if (dt.Rows[i]["MACH_NO"].ToString() == "609") | |
412 | + { | |
413 | + ucTempControl10.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
414 | + continue; | |
415 | + } | |
416 | + if (dt.Rows[i]["MACH_NO"].ToString() == "610") | |
417 | + { | |
418 | + ucTempControl11.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
419 | + continue; | |
420 | + } | |
421 | + if (dt.Rows[i]["MACH_NO"].ToString() == "611") | |
422 | + { | |
423 | + ucTempControl12.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
424 | + continue; | |
425 | + } | |
426 | + if (dt.Rows[i]["MACH_NO"].ToString() == "612") | |
427 | + { | |
428 | + ucTempControl13.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
429 | + continue; | |
430 | + } | |
431 | + if (dt.Rows[i]["MACH_NO"].ToString() == "613") | |
432 | + { | |
433 | + ucTempControl14.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
434 | + continue; | |
435 | + } | |
436 | + if (dt.Rows[i]["MACH_NO"].ToString() == "614") | |
437 | + { | |
438 | + ucTempControl15.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
439 | + continue; | |
440 | + } | |
441 | + if (dt.Rows[i]["MACH_NO"].ToString() == "615") | |
442 | + { | |
443 | + ucTempControl16.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
444 | + continue; | |
445 | + } | |
446 | + if (dt.Rows[i]["MACH_NO"].ToString() == "616") | |
447 | + { | |
448 | + ucTempControl17.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
449 | + continue; | |
450 | + } | |
451 | + if (dt.Rows[i]["MACH_NO"].ToString() == "617") | |
452 | + { | |
453 | + ucTempControl19.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
454 | + continue; | |
455 | + } | |
456 | + if (dt.Rows[i]["MACH_NO"].ToString() == "618") | |
457 | + { | |
458 | + ucTempControl20.Time = dt.Rows[i]["REAL_DATA"].ToString(); | |
459 | + continue; | |
460 | + } | |
461 | + | |
462 | + | |
463 | + | |
464 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.0") | |
465 | + { | |
466 | + try | |
467 | + { | |
468 | + ucTempControl1.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1?1:0; | |
469 | + } | |
470 | + catch (Exception ex) { } | |
471 | + continue; | |
472 | + } | |
473 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.1") | |
474 | + { | |
475 | + try | |
476 | + { | |
477 | + ucTempControl2.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
478 | + } | |
479 | + catch (Exception ex) { } | |
480 | + continue; | |
481 | + } | |
482 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.2") | |
483 | + { | |
484 | + try | |
485 | + { | |
486 | + ucTempControl3.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
487 | + } | |
488 | + catch (Exception ex) { } | |
489 | + continue; | |
490 | + } | |
491 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.3") | |
492 | + { | |
493 | + try | |
494 | + { | |
495 | + ucTempControl4.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
496 | + } | |
497 | + catch (Exception ex) { } | |
498 | + continue; | |
499 | + } | |
500 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.4") | |
501 | + { | |
502 | + try | |
503 | + { | |
504 | + ucTempControl5.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
505 | + } | |
506 | + catch (Exception ex) { } | |
507 | + continue; | |
508 | + } | |
509 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.5") | |
510 | + { | |
511 | + try | |
512 | + { | |
513 | + ucTempControl6.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
514 | + } | |
515 | + catch (Exception ex) { } | |
516 | + continue; | |
517 | + } | |
518 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.6") | |
519 | + { | |
520 | + try | |
521 | + { | |
522 | + ucTempControl7.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
523 | + } | |
524 | + catch (Exception ex) { } | |
525 | + continue; | |
526 | + } | |
527 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.7") | |
528 | + { | |
529 | + try | |
530 | + { | |
531 | + ucTempControl8.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
532 | + } | |
533 | + catch (Exception ex) { } | |
534 | + continue; | |
535 | + } | |
536 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.8") | |
537 | + { | |
538 | + try | |
539 | + { | |
540 | + ucTempControl9.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
541 | + } | |
542 | + catch (Exception ex) { } | |
543 | + continue; | |
544 | + } | |
545 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.9") | |
546 | + { | |
547 | + try | |
548 | + { | |
549 | + ucTempControl10.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
550 | + } | |
551 | + catch (Exception ex) { } | |
552 | + continue; | |
553 | + } | |
554 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.10") | |
555 | + { | |
556 | + try | |
557 | + { | |
558 | + ucTempControl11.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
559 | + } | |
560 | + catch (Exception ex) { } | |
561 | + continue; | |
562 | + } | |
563 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.11") | |
564 | + { | |
565 | + try | |
566 | + { | |
567 | + ucTempControl12.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
568 | + } | |
569 | + catch (Exception ex) { } | |
570 | + continue; | |
571 | + } | |
572 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.12") | |
573 | + { | |
574 | + try | |
575 | + { | |
576 | + ucTempControl13.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
577 | + } | |
578 | + catch (Exception ex) { } | |
579 | + continue; | |
580 | + } | |
581 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.13") | |
582 | + { | |
583 | + try | |
584 | + { | |
585 | + ucTempControl14.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
586 | + } | |
587 | + catch (Exception ex) { } | |
588 | + continue; | |
589 | + } | |
590 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.14") | |
591 | + { | |
592 | + try | |
593 | + { | |
594 | + ucTempControl15.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
595 | + } | |
596 | + catch (Exception ex) { } | |
597 | + continue; | |
598 | + } | |
599 | + if (dt.Rows[i]["MACH_NO"].ToString() == "620.15") | |
600 | + { | |
601 | + try | |
602 | + { | |
603 | + ucTempControl16.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
604 | + } | |
605 | + catch (Exception ex) { } | |
606 | + continue; | |
607 | + } | |
608 | + if (dt.Rows[i]["MACH_NO"].ToString() == "621.0") | |
609 | + { | |
610 | + try | |
611 | + { | |
612 | + ucTempControl17.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
613 | + } | |
614 | + catch (Exception ex) { } | |
615 | + continue; | |
616 | + } | |
617 | + if (dt.Rows[i]["MACH_NO"].ToString() == "621.1") | |
618 | + { | |
619 | + try | |
620 | + { | |
621 | + ucTempControl19.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
622 | + } | |
623 | + catch (Exception ex) { } | |
624 | + continue; | |
625 | + } | |
626 | + if (dt.Rows[i]["MACH_NO"].ToString() == "621.2") | |
627 | + { | |
628 | + try | |
629 | + { | |
630 | + ucTempControl20.State = Convert.ToInt32(dt.Rows[i]["REAL_DATA"].ToString()) >= 1 ? 1 : 0; | |
631 | + } | |
632 | + catch (Exception ex) { } | |
633 | + continue; | |
634 | + } | |
635 | + | |
636 | + | |
637 | + | |
638 | + } | |
639 | + | |
640 | + | |
641 | + | |
642 | + } | |
643 | + | |
644 | + private void timer_Time_Tick(object sender, EventArgs e) | |
645 | + { | |
646 | + label_Timer.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm"); | |
647 | + } | |
648 | + } | |
649 | +} |
+++ KHPANEL/FormHTPanel_1.resx
This file is too big to display. |
+++ KHPANEL/Form_Main.Designer.cs
... | ... | @@ -0,0 +1,93 @@ |
1 | + | |
2 | +namespace KHPANEL | |
3 | +{ | |
4 | + partial class Form_Main | |
5 | + { | |
6 | + /// <summary> | |
7 | + /// 필수 디자이너 변수입니다. | |
8 | + /// </summary> | |
9 | + private System.ComponentModel.IContainer components = null; | |
10 | + | |
11 | + /// <summary> | |
12 | + /// 사용 중인 모든 리소스를 정리합니다. | |
13 | + /// </summary> | |
14 | + /// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param> | |
15 | + protected override void Dispose(bool disposing) | |
16 | + { | |
17 | + if (disposing && (components != null)) | |
18 | + { | |
19 | + components.Dispose(); | |
20 | + } | |
21 | + base.Dispose(disposing); | |
22 | + } | |
23 | + | |
24 | + #region Windows Form 디자이너에서 생성한 코드 | |
25 | + | |
26 | + /// <summary> | |
27 | + /// 디자이너 지원에 필요한 메서드입니다. | |
28 | + /// 이 메서드의 내용을 코드 편집기로 수정하지 마세요. | |
29 | + /// </summary> | |
30 | + private void InitializeComponent() | |
31 | + { | |
32 | + this.components = new System.ComponentModel.Container(); | |
33 | + this.simpleButton_1 = new DevExpress.XtraEditors.SimpleButton(); | |
34 | + this.timer_DBConnect = new System.Windows.Forms.Timer(this.components); | |
35 | + this.textBox_State = new System.Windows.Forms.TextBox(); | |
36 | + this.ucScreen1 = new KHPANEL.ucScreen(); | |
37 | + this.SuspendLayout(); | |
38 | + // | |
39 | + // simpleButton_1 | |
40 | + // | |
41 | + this.simpleButton_1.Location = new System.Drawing.Point(291, 28); | |
42 | + this.simpleButton_1.Name = "simpleButton_1"; | |
43 | + this.simpleButton_1.Size = new System.Drawing.Size(96, 27); | |
44 | + this.simpleButton_1.TabIndex = 1; | |
45 | + this.simpleButton_1.Text = "Open"; | |
46 | + this.simpleButton_1.Click += new System.EventHandler(this.simpleButton_1_Click); | |
47 | + // | |
48 | + // timer_DBConnect | |
49 | + // | |
50 | + this.timer_DBConnect.Enabled = true; | |
51 | + this.timer_DBConnect.Interval = 1000; | |
52 | + this.timer_DBConnect.Tick += new System.EventHandler(this.timer_DBConnect_Tick); | |
53 | + // | |
54 | + // textBox_State | |
55 | + // | |
56 | + this.textBox_State.Location = new System.Drawing.Point(59, 273); | |
57 | + this.textBox_State.Multiline = true; | |
58 | + this.textBox_State.Name = "textBox_State"; | |
59 | + this.textBox_State.Size = new System.Drawing.Size(328, 173); | |
60 | + this.textBox_State.TabIndex = 3; | |
61 | + this.textBox_State.Visible = false; | |
62 | + // | |
63 | + // ucScreen1 | |
64 | + // | |
65 | + this.ucScreen1.LabelText = "온도현황화면"; | |
66 | + this.ucScreen1.Location = new System.Drawing.Point(23, 25); | |
67 | + this.ucScreen1.Name = "ucScreen1"; | |
68 | + this.ucScreen1.Size = new System.Drawing.Size(250, 32); | |
69 | + this.ucScreen1.TabIndex = 0; | |
70 | + // | |
71 | + // Form_Main | |
72 | + // | |
73 | + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; | |
74 | + this.ClientSize = new System.Drawing.Size(416, 458); | |
75 | + this.Controls.Add(this.textBox_State); | |
76 | + this.Controls.Add(this.simpleButton_1); | |
77 | + this.Controls.Add(this.ucScreen1); | |
78 | + this.Name = "Form_Main"; | |
79 | + this.Text = "현황정보"; | |
80 | + this.ResumeLayout(false); | |
81 | + this.PerformLayout(); | |
82 | + | |
83 | + } | |
84 | + | |
85 | + #endregion | |
86 | + | |
87 | + private ucScreen ucScreen1; | |
88 | + private DevExpress.XtraEditors.SimpleButton simpleButton_1; | |
89 | + private System.Windows.Forms.Timer timer_DBConnect; | |
90 | + private System.Windows.Forms.TextBox textBox_State; | |
91 | + } | |
92 | +} | |
93 | + |
+++ KHPANEL/Form_Main.cs
... | ... | @@ -0,0 +1,87 @@ |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.ComponentModel; | |
4 | +using System.Data; | |
5 | +using System.Drawing; | |
6 | +using System.Linq; | |
7 | +using System.Text; | |
8 | +using System.Threading.Tasks; | |
9 | +using System.Windows.Forms; | |
10 | + | |
11 | +namespace KHPANEL | |
12 | +{ | |
13 | + public partial class Form_Main : Form | |
14 | + { | |
15 | + | |
16 | + FormHTPanel_1 Screen01; | |
17 | + public Form_Main() | |
18 | + { | |
19 | + InitializeComponent(); | |
20 | + | |
21 | + Screen01 = new FormHTPanel_1(); | |
22 | + | |
23 | + ScreenDetect(); | |
24 | + } | |
25 | + | |
26 | + | |
27 | + private void ScreenDetect() | |
28 | + { | |
29 | + Screen[] sc = Screen.AllScreens; | |
30 | + if (sc.Length > 1) | |
31 | + { | |
32 | + | |
33 | + ucScreen1.SetScreen(sc, 1); | |
34 | + ucScreen1.SetScreen(sc, 2); | |
35 | + //Screen screen = (sc[0].WorkingArea.Contains(this.Location)) ? sc[1] : sc[0]; | |
36 | + //frm.Show(); | |
37 | + | |
38 | + //frm.Location = screen.Bounds.Location; | |
39 | + | |
40 | + //frm.WindowState = FormWindowState.Maximized; | |
41 | + | |
42 | + } | |
43 | + | |
44 | + } | |
45 | + | |
46 | + private void simpleButton_1_Click(object sender, EventArgs e) | |
47 | + { | |
48 | + //MessageBox.Show(ucScreen1.m_SelectIndex.ToString()); | |
49 | + if(Screen01==null || Screen01.IsDisposed) | |
50 | + { | |
51 | + Screen01 = new FormHTPanel_1(); | |
52 | + } | |
53 | + Screen[] sc = Screen.AllScreens; | |
54 | + Screen screen = sc[ucScreen1.m_SelectIndex]; | |
55 | + Screen01.Show(); | |
56 | + Screen01.Location = screen.Bounds.Location; | |
57 | + Screen01.WindowState = FormWindowState.Maximized; | |
58 | + } | |
59 | + | |
60 | + private void timer_DBConnect_Tick(object sender, EventArgs e) | |
61 | + { | |
62 | + try | |
63 | + { | |
64 | + if (!DBConnectionSingleton.Instance().isConnect()) | |
65 | + if (DBConnectionSingleton.Instance().Connect()) | |
66 | + { | |
67 | + textBox_State.Text = "DB_Connected\r\n"; | |
68 | + //panel_DBConnect.BackColor = Color.FromArgb(192, 255, 192); | |
69 | + } | |
70 | + else | |
71 | + { | |
72 | + //panel_DBConnect.BackColor = Color.FromArgb(255, 192, 192); | |
73 | + } | |
74 | + } | |
75 | + catch (Exception ex) | |
76 | + { | |
77 | + | |
78 | + textBox_State.Text = "DB_Connected Error\r\n"; | |
79 | + } | |
80 | + } | |
81 | + | |
82 | + private void button1_Click(object sender, EventArgs e) | |
83 | + { | |
84 | + | |
85 | + } | |
86 | + } | |
87 | +} |
+++ KHPANEL/Form_Main.resx
... | ... | @@ -0,0 +1,123 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<root> | |
3 | + <!-- | |
4 | + Microsoft ResX Schema | |
5 | + | |
6 | + Version 2.0 | |
7 | + | |
8 | + The primary goals of this format is to allow a simple XML format | |
9 | + that is mostly human readable. The generation and parsing of the | |
10 | + various data types are done through the TypeConverter classes | |
11 | + associated with the data types. | |
12 | + | |
13 | + Example: | |
14 | + | |
15 | + ... ado.net/XML headers & schema ... | |
16 | + <resheader name="resmimetype">text/microsoft-resx</resheader> | |
17 | + <resheader name="version">2.0</resheader> | |
18 | + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |
19 | + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |
20 | + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |
21 | + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |
22 | + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |
23 | + <value>[base64 mime encoded serialized .NET Framework object]</value> | |
24 | + </data> | |
25 | + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |
26 | + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |
27 | + <comment>This is a comment</comment> | |
28 | + </data> | |
29 | + | |
30 | + There are any number of "resheader" rows that contain simple | |
31 | + name/value pairs. | |
32 | + | |
33 | + Each data row contains a name, and value. The row also contains a | |
34 | + type or mimetype. Type corresponds to a .NET class that support | |
35 | + text/value conversion through the TypeConverter architecture. | |
36 | + Classes that don't support this are serialized and stored with the | |
37 | + mimetype set. | |
38 | + | |
39 | + The mimetype is used for serialized objects, and tells the | |
40 | + ResXResourceReader how to depersist the object. This is currently not | |
41 | + extensible. For a given mimetype the value must be set accordingly: | |
42 | + | |
43 | + Note - application/x-microsoft.net.object.binary.base64 is the format | |
44 | + that the ResXResourceWriter will generate, however the reader can | |
45 | + read any of the formats listed below. | |
46 | + | |
47 | + mimetype: application/x-microsoft.net.object.binary.base64 | |
48 | + value : The object must be serialized with | |
49 | + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |
50 | + : and then encoded with base64 encoding. | |
51 | + | |
52 | + mimetype: application/x-microsoft.net.object.soap.base64 | |
53 | + value : The object must be serialized with | |
54 | + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |
55 | + : and then encoded with base64 encoding. | |
56 | + | |
57 | + mimetype: application/x-microsoft.net.object.bytearray.base64 | |
58 | + value : The object must be serialized into a byte array | |
59 | + : using a System.ComponentModel.TypeConverter | |
60 | + : and then encoded with base64 encoding. | |
61 | + --> | |
62 | + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |
63 | + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |
64 | + <xsd:element name="root" msdata:IsDataSet="true"> | |
65 | + <xsd:complexType> | |
66 | + <xsd:choice maxOccurs="unbounded"> | |
67 | + <xsd:element name="metadata"> | |
68 | + <xsd:complexType> | |
69 | + <xsd:sequence> | |
70 | + <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |
71 | + </xsd:sequence> | |
72 | + <xsd:attribute name="name" use="required" type="xsd:string" /> | |
73 | + <xsd:attribute name="type" type="xsd:string" /> | |
74 | + <xsd:attribute name="mimetype" type="xsd:string" /> | |
75 | + <xsd:attribute ref="xml:space" /> | |
76 | + </xsd:complexType> | |
77 | + </xsd:element> | |
78 | + <xsd:element name="assembly"> | |
79 | + <xsd:complexType> | |
80 | + <xsd:attribute name="alias" type="xsd:string" /> | |
81 | + <xsd:attribute name="name" type="xsd:string" /> | |
82 | + </xsd:complexType> | |
83 | + </xsd:element> | |
84 | + <xsd:element name="data"> | |
85 | + <xsd:complexType> | |
86 | + <xsd:sequence> | |
87 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
88 | + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |
89 | + </xsd:sequence> | |
90 | + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |
91 | + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |
92 | + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |
93 | + <xsd:attribute ref="xml:space" /> | |
94 | + </xsd:complexType> | |
95 | + </xsd:element> | |
96 | + <xsd:element name="resheader"> | |
97 | + <xsd:complexType> | |
98 | + <xsd:sequence> | |
99 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
100 | + </xsd:sequence> | |
101 | + <xsd:attribute name="name" type="xsd:string" use="required" /> | |
102 | + </xsd:complexType> | |
103 | + </xsd:element> | |
104 | + </xsd:choice> | |
105 | + </xsd:complexType> | |
106 | + </xsd:element> | |
107 | + </xsd:schema> | |
108 | + <resheader name="resmimetype"> | |
109 | + <value>text/microsoft-resx</value> | |
110 | + </resheader> | |
111 | + <resheader name="version"> | |
112 | + <value>2.0</value> | |
113 | + </resheader> | |
114 | + <resheader name="reader"> | |
115 | + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
116 | + </resheader> | |
117 | + <resheader name="writer"> | |
118 | + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
119 | + </resheader> | |
120 | + <metadata name="timer_DBConnect.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | |
121 | + <value>17, 17</value> | |
122 | + </metadata> | |
123 | +</root>(No newline at end of file) |
+++ KHPANEL/KHPANEL.csproj
... | ... | @@ -0,0 +1,136 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
3 | + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |
4 | + <PropertyGroup> | |
5 | + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
6 | + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |
7 | + <ProjectGuid>{B73643C5-A31F-42CD-85BB-BCBE01FD15C6}</ProjectGuid> | |
8 | + <OutputType>WinExe</OutputType> | |
9 | + <RootNamespace>KHPANEL</RootNamespace> | |
10 | + <AssemblyName>KHPANEL</AssemblyName> | |
11 | + <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | |
12 | + <FileAlignment>512</FileAlignment> | |
13 | + <Deterministic>true</Deterministic> | |
14 | + </PropertyGroup> | |
15 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |
16 | + <PlatformTarget>AnyCPU</PlatformTarget> | |
17 | + <DebugSymbols>true</DebugSymbols> | |
18 | + <DebugType>full</DebugType> | |
19 | + <Optimize>false</Optimize> | |
20 | + <OutputPath>bin\Debug\</OutputPath> | |
21 | + <DefineConstants>DEBUG;TRACE</DefineConstants> | |
22 | + <ErrorReport>prompt</ErrorReport> | |
23 | + <WarningLevel>4</WarningLevel> | |
24 | + </PropertyGroup> | |
25 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |
26 | + <PlatformTarget>AnyCPU</PlatformTarget> | |
27 | + <DebugType>pdbonly</DebugType> | |
28 | + <Optimize>true</Optimize> | |
29 | + <OutputPath>bin\Release\</OutputPath> | |
30 | + <DefineConstants>TRACE</DefineConstants> | |
31 | + <ErrorReport>prompt</ErrorReport> | |
32 | + <WarningLevel>4</WarningLevel> | |
33 | + </PropertyGroup> | |
34 | + <ItemGroup> | |
35 | + <Reference Include="DevExpress.Data.v14.1, Version=14.1.10.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> | |
36 | + <Reference Include="DevExpress.Printing.v14.1.Core, Version=14.1.10.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> | |
37 | + <Reference Include="DevExpress.Sparkline.v14.1.Core, Version=14.1.10.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> | |
38 | + <Reference Include="DevExpress.Utils.v14.1, Version=14.1.10.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> | |
39 | + <Reference Include="DevExpress.XtraEditors.v14.1, Version=14.1.10.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" /> | |
40 | + <Reference Include="System" /> | |
41 | + <Reference Include="System.Core" /> | |
42 | + <Reference Include="System.Data.Linq" /> | |
43 | + <Reference Include="System.Printing" /> | |
44 | + <Reference Include="System.Xml.Linq" /> | |
45 | + <Reference Include="System.Data.DataSetExtensions" /> | |
46 | + <Reference Include="Microsoft.CSharp" /> | |
47 | + <Reference Include="System.Data" /> | |
48 | + <Reference Include="System.Deployment" /> | |
49 | + <Reference Include="System.Drawing" /> | |
50 | + <Reference Include="System.Net.Http" /> | |
51 | + <Reference Include="System.Windows.Forms" /> | |
52 | + <Reference Include="System.Xml" /> | |
53 | + </ItemGroup> | |
54 | + <ItemGroup> | |
55 | + <Compile Include="CircularProgressBar.cs"> | |
56 | + <SubType>Component</SubType> | |
57 | + </Compile> | |
58 | + <Compile Include="DBConnectionSingleton.cs" /> | |
59 | + <Compile Include="Form_Main.cs"> | |
60 | + <SubType>Form</SubType> | |
61 | + </Compile> | |
62 | + <Compile Include="Form_Main.Designer.cs"> | |
63 | + <DependentUpon>Form_Main.cs</DependentUpon> | |
64 | + </Compile> | |
65 | + <Compile Include="FormHTPanel_1.cs"> | |
66 | + <SubType>Form</SubType> | |
67 | + </Compile> | |
68 | + <Compile Include="FormHTPanel_1.Designer.cs"> | |
69 | + <DependentUpon>FormHTPanel_1.cs</DependentUpon> | |
70 | + </Compile> | |
71 | + <Compile Include="Program.cs" /> | |
72 | + <Compile Include="Properties\AssemblyInfo.cs" /> | |
73 | + <Compile Include="ucScreen.cs"> | |
74 | + <SubType>UserControl</SubType> | |
75 | + </Compile> | |
76 | + <Compile Include="ucScreen.Designer.cs"> | |
77 | + <DependentUpon>ucScreen.cs</DependentUpon> | |
78 | + </Compile> | |
79 | + <Compile Include="ucTempControl.cs"> | |
80 | + <SubType>UserControl</SubType> | |
81 | + </Compile> | |
82 | + <Compile Include="ucTempControl.Designer.cs"> | |
83 | + <DependentUpon>ucTempControl.cs</DependentUpon> | |
84 | + </Compile> | |
85 | + <EmbeddedResource Include="Form_Main.resx"> | |
86 | + <DependentUpon>Form_Main.cs</DependentUpon> | |
87 | + </EmbeddedResource> | |
88 | + <EmbeddedResource Include="FormHTPanel_1.resx"> | |
89 | + <DependentUpon>FormHTPanel_1.cs</DependentUpon> | |
90 | + </EmbeddedResource> | |
91 | + <EmbeddedResource Include="Properties\Resources.resx"> | |
92 | + <Generator>ResXFileCodeGenerator</Generator> | |
93 | + <LastGenOutput>Resources.Designer.cs</LastGenOutput> | |
94 | + <SubType>Designer</SubType> | |
95 | + </EmbeddedResource> | |
96 | + <Compile Include="Properties\Resources.Designer.cs"> | |
97 | + <AutoGen>True</AutoGen> | |
98 | + <DependentUpon>Resources.resx</DependentUpon> | |
99 | + <DesignTime>True</DesignTime> | |
100 | + </Compile> | |
101 | + <EmbeddedResource Include="ucScreen.resx"> | |
102 | + <DependentUpon>ucScreen.cs</DependentUpon> | |
103 | + </EmbeddedResource> | |
104 | + <EmbeddedResource Include="ucTempControl.resx"> | |
105 | + <DependentUpon>ucTempControl.cs</DependentUpon> | |
106 | + </EmbeddedResource> | |
107 | + <None Include="Properties\Settings.settings"> | |
108 | + <Generator>SettingsSingleFileGenerator</Generator> | |
109 | + <LastGenOutput>Settings.Designer.cs</LastGenOutput> | |
110 | + </None> | |
111 | + <Compile Include="Properties\Settings.Designer.cs"> | |
112 | + <AutoGen>True</AutoGen> | |
113 | + <DependentUpon>Settings.settings</DependentUpon> | |
114 | + <DesignTimeSharedInput>True</DesignTimeSharedInput> | |
115 | + </Compile> | |
116 | + </ItemGroup> | |
117 | + <ItemGroup> | |
118 | + <None Include="App.config" /> | |
119 | + </ItemGroup> | |
120 | + <ItemGroup> | |
121 | + <None Include="Resources\Title.png" /> | |
122 | + </ItemGroup> | |
123 | + <ItemGroup> | |
124 | + <None Include="Resources\h-001.png" /> | |
125 | + </ItemGroup> | |
126 | + <ItemGroup> | |
127 | + <None Include="Resources\h-007.png" /> | |
128 | + </ItemGroup> | |
129 | + <ItemGroup> | |
130 | + <None Include="Resources\h-003.png" /> | |
131 | + </ItemGroup> | |
132 | + <ItemGroup> | |
133 | + <None Include="Resources\h-005.png" /> | |
134 | + </ItemGroup> | |
135 | + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | |
136 | +</Project>(No newline at end of file) |
+++ KHPANEL/Program.cs
... | ... | @@ -0,0 +1,25 @@ |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using System.Windows.Forms; | |
6 | + | |
7 | +namespace KHPANEL | |
8 | +{ | |
9 | + static class Program | |
10 | + { | |
11 | + /// <summary> | |
12 | + /// 해당 애플리케이션의 주 진입점입니다. | |
13 | + /// </summary> | |
14 | + [STAThread] | |
15 | + static void Main() | |
16 | + { | |
17 | + Application.EnableVisualStyles(); | |
18 | + Application.SetCompatibleTextRenderingDefault(false); | |
19 | + Application.Run(new Form_Main()); | |
20 | + } | |
21 | + | |
22 | + | |
23 | + | |
24 | + } | |
25 | +} |
+++ KHPANEL/Properties/AssemblyInfo.cs
... | ... | @@ -0,0 +1,36 @@ |
1 | +using System.Reflection; | |
2 | +using System.Runtime.CompilerServices; | |
3 | +using System.Runtime.InteropServices; | |
4 | + | |
5 | +// 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해 | |
6 | +// 제어됩니다. 어셈블리와 관련된 정보를 수정하려면 | |
7 | +// 이러한 특성 값을 변경하세요. | |
8 | +[assembly: AssemblyTitle("KHPANEL")] | |
9 | +[assembly: AssemblyDescription("")] | |
10 | +[assembly: AssemblyConfiguration("")] | |
11 | +[assembly: AssemblyCompany("")] | |
12 | +[assembly: AssemblyProduct("KHPANEL")] | |
13 | +[assembly: AssemblyCopyright("Copyright © 2022")] | |
14 | +[assembly: AssemblyTrademark("")] | |
15 | +[assembly: AssemblyCulture("")] | |
16 | + | |
17 | +// ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에 | |
18 | +// 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면 | |
19 | +// 해당 형식에 대해 ComVisible 특성을 true로 설정하세요. | |
20 | +[assembly: ComVisible(false)] | |
21 | + | |
22 | +// 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다. | |
23 | +[assembly: Guid("b73643c5-a31f-42cd-85bb-bcbe01fd15c6")] | |
24 | + | |
25 | +// 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다. | |
26 | +// | |
27 | +// 주 버전 | |
28 | +// 부 버전 | |
29 | +// 빌드 번호 | |
30 | +// 수정 버전 | |
31 | +// | |
32 | +// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를 | |
33 | +// 기본값으로 할 수 있습니다. | |
34 | +// [assembly: AssemblyVersion("1.0.*")] | |
35 | +[assembly: AssemblyVersion("1.0.0.0")] | |
36 | +[assembly: AssemblyFileVersion("1.0.0.0")] |
+++ KHPANEL/Properties/Resources.Designer.cs
... | ... | @@ -0,0 +1,113 @@ |
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// 이 코드는 도구를 사용하여 생성되었습니다. | |
4 | +// 런타임 버전:4.0.30319.42000 | |
5 | +// | |
6 | +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 | |
7 | +// 이러한 변경 내용이 손실됩니다. | |
8 | +// </auto-generated> | |
9 | +//------------------------------------------------------------------------------ | |
10 | + | |
11 | +namespace KHPANEL.Properties { | |
12 | + using System; | |
13 | + | |
14 | + | |
15 | + /// <summary> | |
16 | + /// 지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다. | |
17 | + /// </summary> | |
18 | + // 이 클래스는 ResGen 또는 Visual Studio와 같은 도구를 통해 StronglyTypedResourceBuilder | |
19 | + // 클래스에서 자동으로 생성되었습니다. | |
20 | + // 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여 ResGen을 | |
21 | + // 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오. | |
22 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] | |
23 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
24 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |
25 | + internal class Resources { | |
26 | + | |
27 | + private static global::System.Resources.ResourceManager resourceMan; | |
28 | + | |
29 | + private static global::System.Globalization.CultureInfo resourceCulture; | |
30 | + | |
31 | + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] | |
32 | + internal Resources() { | |
33 | + } | |
34 | + | |
35 | + /// <summary> | |
36 | + /// 이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다. | |
37 | + /// </summary> | |
38 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |
39 | + internal static global::System.Resources.ResourceManager ResourceManager { | |
40 | + get { | |
41 | + if (object.ReferenceEquals(resourceMan, null)) { | |
42 | + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("KHPANEL.Properties.Resources", typeof(Resources).Assembly); | |
43 | + resourceMan = temp; | |
44 | + } | |
45 | + return resourceMan; | |
46 | + } | |
47 | + } | |
48 | + | |
49 | + /// <summary> | |
50 | + /// 이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 대해 현재 스레드의 CurrentUICulture 속성을 | |
51 | + /// 재정의합니다. | |
52 | + /// </summary> | |
53 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |
54 | + internal static global::System.Globalization.CultureInfo Culture { | |
55 | + get { | |
56 | + return resourceCulture; | |
57 | + } | |
58 | + set { | |
59 | + resourceCulture = value; | |
60 | + } | |
61 | + } | |
62 | + | |
63 | + /// <summary> | |
64 | + /// System.Drawing.Bitmap 형식의 지역화된 리소스를 찾습니다. | |
65 | + /// </summary> | |
66 | + internal static System.Drawing.Bitmap h_001 { | |
67 | + get { | |
68 | + object obj = ResourceManager.GetObject("h-001", resourceCulture); | |
69 | + return ((System.Drawing.Bitmap)(obj)); | |
70 | + } | |
71 | + } | |
72 | + | |
73 | + /// <summary> | |
74 | + /// System.Drawing.Bitmap 형식의 지역화된 리소스를 찾습니다. | |
75 | + /// </summary> | |
76 | + internal static System.Drawing.Bitmap h_003 { | |
77 | + get { | |
78 | + object obj = ResourceManager.GetObject("h-003", resourceCulture); | |
79 | + return ((System.Drawing.Bitmap)(obj)); | |
80 | + } | |
81 | + } | |
82 | + | |
83 | + /// <summary> | |
84 | + /// System.Drawing.Bitmap 형식의 지역화된 리소스를 찾습니다. | |
85 | + /// </summary> | |
86 | + internal static System.Drawing.Bitmap h_005 { | |
87 | + get { | |
88 | + object obj = ResourceManager.GetObject("h-005", resourceCulture); | |
89 | + return ((System.Drawing.Bitmap)(obj)); | |
90 | + } | |
91 | + } | |
92 | + | |
93 | + /// <summary> | |
94 | + /// System.Drawing.Bitmap 형식의 지역화된 리소스를 찾습니다. | |
95 | + /// </summary> | |
96 | + internal static System.Drawing.Bitmap h_007 { | |
97 | + get { | |
98 | + object obj = ResourceManager.GetObject("h-007", resourceCulture); | |
99 | + return ((System.Drawing.Bitmap)(obj)); | |
100 | + } | |
101 | + } | |
102 | + | |
103 | + /// <summary> | |
104 | + /// System.Drawing.Bitmap 형식의 지역화된 리소스를 찾습니다. | |
105 | + /// </summary> | |
106 | + internal static System.Drawing.Bitmap Title { | |
107 | + get { | |
108 | + object obj = ResourceManager.GetObject("Title", resourceCulture); | |
109 | + return ((System.Drawing.Bitmap)(obj)); | |
110 | + } | |
111 | + } | |
112 | + } | |
113 | +} |
+++ KHPANEL/Properties/Resources.resx
... | ... | @@ -0,0 +1,136 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<root> | |
3 | + <!-- | |
4 | + Microsoft ResX Schema | |
5 | + | |
6 | + Version 2.0 | |
7 | + | |
8 | + The primary goals of this format is to allow a simple XML format | |
9 | + that is mostly human readable. The generation and parsing of the | |
10 | + various data types are done through the TypeConverter classes | |
11 | + associated with the data types. | |
12 | + | |
13 | + Example: | |
14 | + | |
15 | + ... ado.net/XML headers & schema ... | |
16 | + <resheader name="resmimetype">text/microsoft-resx</resheader> | |
17 | + <resheader name="version">2.0</resheader> | |
18 | + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |
19 | + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |
20 | + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |
21 | + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |
22 | + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |
23 | + <value>[base64 mime encoded serialized .NET Framework object]</value> | |
24 | + </data> | |
25 | + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |
26 | + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |
27 | + <comment>This is a comment</comment> | |
28 | + </data> | |
29 | + | |
30 | + There are any number of "resheader" rows that contain simple | |
31 | + name/value pairs. | |
32 | + | |
33 | + Each data row contains a name, and value. The row also contains a | |
34 | + type or mimetype. Type corresponds to a .NET class that support | |
35 | + text/value conversion through the TypeConverter architecture. | |
36 | + Classes that don't support this are serialized and stored with the | |
37 | + mimetype set. | |
38 | + | |
39 | + The mimetype is used for serialized objects, and tells the | |
40 | + ResXResourceReader how to depersist the object. This is currently not | |
41 | + extensible. For a given mimetype the value must be set accordingly: | |
42 | + | |
43 | + Note - application/x-microsoft.net.object.binary.base64 is the format | |
44 | + that the ResXResourceWriter will generate, however the reader can | |
45 | + read any of the formats listed below. | |
46 | + | |
47 | + mimetype: application/x-microsoft.net.object.binary.base64 | |
48 | + value : The object must be serialized with | |
49 | + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |
50 | + : and then encoded with base64 encoding. | |
51 | + | |
52 | + mimetype: application/x-microsoft.net.object.soap.base64 | |
53 | + value : The object must be serialized with | |
54 | + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |
55 | + : and then encoded with base64 encoding. | |
56 | + | |
57 | + mimetype: application/x-microsoft.net.object.bytearray.base64 | |
58 | + value : The object must be serialized into a byte array | |
59 | + : using a System.ComponentModel.TypeConverter | |
60 | + : and then encoded with base64 encoding. | |
61 | + --> | |
62 | + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |
63 | + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |
64 | + <xsd:element name="root" msdata:IsDataSet="true"> | |
65 | + <xsd:complexType> | |
66 | + <xsd:choice maxOccurs="unbounded"> | |
67 | + <xsd:element name="metadata"> | |
68 | + <xsd:complexType> | |
69 | + <xsd:sequence> | |
70 | + <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |
71 | + </xsd:sequence> | |
72 | + <xsd:attribute name="name" use="required" type="xsd:string" /> | |
73 | + <xsd:attribute name="type" type="xsd:string" /> | |
74 | + <xsd:attribute name="mimetype" type="xsd:string" /> | |
75 | + <xsd:attribute ref="xml:space" /> | |
76 | + </xsd:complexType> | |
77 | + </xsd:element> | |
78 | + <xsd:element name="assembly"> | |
79 | + <xsd:complexType> | |
80 | + <xsd:attribute name="alias" type="xsd:string" /> | |
81 | + <xsd:attribute name="name" type="xsd:string" /> | |
82 | + </xsd:complexType> | |
83 | + </xsd:element> | |
84 | + <xsd:element name="data"> | |
85 | + <xsd:complexType> | |
86 | + <xsd:sequence> | |
87 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
88 | + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |
89 | + </xsd:sequence> | |
90 | + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |
91 | + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |
92 | + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |
93 | + <xsd:attribute ref="xml:space" /> | |
94 | + </xsd:complexType> | |
95 | + </xsd:element> | |
96 | + <xsd:element name="resheader"> | |
97 | + <xsd:complexType> | |
98 | + <xsd:sequence> | |
99 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
100 | + </xsd:sequence> | |
101 | + <xsd:attribute name="name" type="xsd:string" use="required" /> | |
102 | + </xsd:complexType> | |
103 | + </xsd:element> | |
104 | + </xsd:choice> | |
105 | + </xsd:complexType> | |
106 | + </xsd:element> | |
107 | + </xsd:schema> | |
108 | + <resheader name="resmimetype"> | |
109 | + <value>text/microsoft-resx</value> | |
110 | + </resheader> | |
111 | + <resheader name="version"> | |
112 | + <value>2.0</value> | |
113 | + </resheader> | |
114 | + <resheader name="reader"> | |
115 | + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
116 | + </resheader> | |
117 | + <resheader name="writer"> | |
118 | + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
119 | + </resheader> | |
120 | + <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | |
121 | + <data name="Title" type="System.Resources.ResXFileRef, System.Windows.Forms"> | |
122 | + <value>..\Resources\Title.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> | |
123 | + </data> | |
124 | + <data name="h-001" type="System.Resources.ResXFileRef, System.Windows.Forms"> | |
125 | + <value>..\Resources\h-001.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> | |
126 | + </data> | |
127 | + <data name="h-007" type="System.Resources.ResXFileRef, System.Windows.Forms"> | |
128 | + <value>..\Resources\h-007.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> | |
129 | + </data> | |
130 | + <data name="h-003" type="System.Resources.ResXFileRef, System.Windows.Forms"> | |
131 | + <value>..\Resources\h-003.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> | |
132 | + </data> | |
133 | + <data name="h-005" type="System.Resources.ResXFileRef, System.Windows.Forms"> | |
134 | + <value>..\Resources\h-005.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> | |
135 | + </data> | |
136 | +</root>(No newline at end of file) |
+++ KHPANEL/Properties/Settings.Designer.cs
... | ... | @@ -0,0 +1,29 @@ |
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated by a tool. | |
4 | +// Runtime Version:4.0.30319.42000 | |
5 | +// | |
6 | +// Changes to this file may cause incorrect behavior and will be lost if | |
7 | +// the code is regenerated. | |
8 | +// </auto-generated> | |
9 | +//------------------------------------------------------------------------------ | |
10 | + | |
11 | + | |
12 | +namespace KHPANEL.Properties | |
13 | +{ | |
14 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |
15 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] | |
16 | + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase | |
17 | + { | |
18 | + | |
19 | + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); | |
20 | + | |
21 | + public static Settings Default | |
22 | + { | |
23 | + get | |
24 | + { | |
25 | + return defaultInstance; | |
26 | + } | |
27 | + } | |
28 | + } | |
29 | +} |
+++ KHPANEL/Properties/Settings.settings
... | ... | @@ -0,0 +1,7 @@ |
1 | +<?xml version='1.0' encoding='utf-8'?> | |
2 | +<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> | |
3 | + <Profiles> | |
4 | + <Profile Name="(Default)" /> | |
5 | + </Profiles> | |
6 | + <Settings /> | |
7 | +</SettingsFile> |
+++ KHPANEL/Resources/Title.png
Binary file is not shown |
+++ KHPANEL/Resources/h-001.png
Binary file is not shown |
+++ KHPANEL/Resources/h-003.png
Binary file is not shown |
+++ KHPANEL/Resources/h-005.png
Binary file is not shown |
+++ KHPANEL/Resources/h-007.png
Binary file is not shown |
+++ KHPANEL/ucScreen.Designer.cs
... | ... | @@ -0,0 +1,73 @@ |
1 | + | |
2 | +namespace KHPANEL | |
3 | +{ | |
4 | + partial class ucScreen | |
5 | + { | |
6 | + /// <summary> | |
7 | + /// 필수 디자이너 변수입니다. | |
8 | + /// </summary> | |
9 | + private System.ComponentModel.IContainer components = null; | |
10 | + | |
11 | + /// <summary> | |
12 | + /// 사용 중인 모든 리소스를 정리합니다. | |
13 | + /// </summary> | |
14 | + /// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param> | |
15 | + protected override void Dispose(bool disposing) | |
16 | + { | |
17 | + if (disposing && (components != null)) | |
18 | + { | |
19 | + components.Dispose(); | |
20 | + } | |
21 | + base.Dispose(disposing); | |
22 | + } | |
23 | + | |
24 | + #region 구성 요소 디자이너에서 생성한 코드 | |
25 | + | |
26 | + /// <summary> | |
27 | + /// 디자이너 지원에 필요한 메서드입니다. | |
28 | + /// 이 메서드의 내용을 코드 편집기로 수정하지 마세요. | |
29 | + /// </summary> | |
30 | + private void InitializeComponent() | |
31 | + { | |
32 | + this.labelControl_Title = new DevExpress.XtraEditors.LabelControl(); | |
33 | + this.comboBox_Screen = new System.Windows.Forms.ComboBox(); | |
34 | + this.SuspendLayout(); | |
35 | + // | |
36 | + // labelControl_Title | |
37 | + // | |
38 | + this.labelControl_Title.Appearance.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | |
39 | + this.labelControl_Title.Location = new System.Drawing.Point(3, 3); | |
40 | + this.labelControl_Title.Name = "labelControl_Title"; | |
41 | + this.labelControl_Title.Size = new System.Drawing.Size(102, 23); | |
42 | + this.labelControl_Title.TabIndex = 0; | |
43 | + this.labelControl_Title.Text = "이름을적는곳"; | |
44 | + // | |
45 | + // comboBox_Screen | |
46 | + // | |
47 | + this.comboBox_Screen.FormattingEnabled = true; | |
48 | + this.comboBox_Screen.Location = new System.Drawing.Point(126, 6); | |
49 | + this.comboBox_Screen.Name = "comboBox_Screen"; | |
50 | + this.comboBox_Screen.Size = new System.Drawing.Size(121, 20); | |
51 | + this.comboBox_Screen.TabIndex = 1; | |
52 | + this.comboBox_Screen.Text = "스크린번호"; | |
53 | + this.comboBox_Screen.SelectedIndexChanged += new System.EventHandler(this.comboBox_Screen_SelectedIndexChanged); | |
54 | + // | |
55 | + // ucScreen | |
56 | + // | |
57 | + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); | |
58 | + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |
59 | + this.Controls.Add(this.comboBox_Screen); | |
60 | + this.Controls.Add(this.labelControl_Title); | |
61 | + this.Name = "ucScreen"; | |
62 | + this.Size = new System.Drawing.Size(250, 32); | |
63 | + this.ResumeLayout(false); | |
64 | + this.PerformLayout(); | |
65 | + | |
66 | + } | |
67 | + | |
68 | + #endregion | |
69 | + | |
70 | + private DevExpress.XtraEditors.LabelControl labelControl_Title; | |
71 | + private System.Windows.Forms.ComboBox comboBox_Screen; | |
72 | + } | |
73 | +} |
+++ KHPANEL/ucScreen.cs
... | ... | @@ -0,0 +1,63 @@ |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.ComponentModel; | |
4 | +using System.Data; | |
5 | +using System.Drawing; | |
6 | +using System.Linq; | |
7 | +using System.Text; | |
8 | +using System.Threading.Tasks; | |
9 | +using System.Windows.Forms; | |
10 | + | |
11 | +namespace KHPANEL | |
12 | +{ | |
13 | + public partial class ucScreen : UserControl | |
14 | + { | |
15 | + | |
16 | + public int m_SelectIndex = 0; | |
17 | + public ucScreen() | |
18 | + { | |
19 | + InitializeComponent(); | |
20 | + } | |
21 | + | |
22 | + | |
23 | + public void SetScreen(Screen[] screen, int InitNumber) | |
24 | + { | |
25 | + if(screen.Length < InitNumber) | |
26 | + { | |
27 | + labelControl_Title.Text = ""; | |
28 | + comboBox_Screen.Visible = false; | |
29 | + return; | |
30 | + }else if(screen.Length != 0) | |
31 | + { | |
32 | + comboBox_Screen.Items.Clear(); | |
33 | + for (int i = 0; i < screen.Length; i ++ ) | |
34 | + { | |
35 | + comboBox_Screen.Items.Add((i + 1).ToString() + "번 모니터"); | |
36 | + } | |
37 | + comboBox_Screen.SelectedIndex = InitNumber - 1; | |
38 | + } | |
39 | + } | |
40 | + | |
41 | + | |
42 | + | |
43 | + | |
44 | + | |
45 | + [Category("설정"), Description("표시 텍스트")] | |
46 | + public string LabelText | |
47 | + { | |
48 | + get | |
49 | + { | |
50 | + return this.labelControl_Title.Text; | |
51 | + } | |
52 | + set | |
53 | + { | |
54 | + this.labelControl_Title.Text = value; | |
55 | + } | |
56 | + } | |
57 | + | |
58 | + private void comboBox_Screen_SelectedIndexChanged(object sender, EventArgs e) | |
59 | + { | |
60 | + m_SelectIndex = comboBox_Screen.SelectedIndex; | |
61 | + } | |
62 | + } | |
63 | +} |
+++ KHPANEL/ucScreen.resx
... | ... | @@ -0,0 +1,120 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<root> | |
3 | + <!-- | |
4 | + Microsoft ResX Schema | |
5 | + | |
6 | + Version 2.0 | |
7 | + | |
8 | + The primary goals of this format is to allow a simple XML format | |
9 | + that is mostly human readable. The generation and parsing of the | |
10 | + various data types are done through the TypeConverter classes | |
11 | + associated with the data types. | |
12 | + | |
13 | + Example: | |
14 | + | |
15 | + ... ado.net/XML headers & schema ... | |
16 | + <resheader name="resmimetype">text/microsoft-resx</resheader> | |
17 | + <resheader name="version">2.0</resheader> | |
18 | + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |
19 | + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |
20 | + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |
21 | + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |
22 | + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |
23 | + <value>[base64 mime encoded serialized .NET Framework object]</value> | |
24 | + </data> | |
25 | + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |
26 | + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |
27 | + <comment>This is a comment</comment> | |
28 | + </data> | |
29 | + | |
30 | + There are any number of "resheader" rows that contain simple | |
31 | + name/value pairs. | |
32 | + | |
33 | + Each data row contains a name, and value. The row also contains a | |
34 | + type or mimetype. Type corresponds to a .NET class that support | |
35 | + text/value conversion through the TypeConverter architecture. | |
36 | + Classes that don't support this are serialized and stored with the | |
37 | + mimetype set. | |
38 | + | |
39 | + The mimetype is used for serialized objects, and tells the | |
40 | + ResXResourceReader how to depersist the object. This is currently not | |
41 | + extensible. For a given mimetype the value must be set accordingly: | |
42 | + | |
43 | + Note - application/x-microsoft.net.object.binary.base64 is the format | |
44 | + that the ResXResourceWriter will generate, however the reader can | |
45 | + read any of the formats listed below. | |
46 | + | |
47 | + mimetype: application/x-microsoft.net.object.binary.base64 | |
48 | + value : The object must be serialized with | |
49 | + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |
50 | + : and then encoded with base64 encoding. | |
51 | + | |
52 | + mimetype: application/x-microsoft.net.object.soap.base64 | |
53 | + value : The object must be serialized with | |
54 | + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |
55 | + : and then encoded with base64 encoding. | |
56 | + | |
57 | + mimetype: application/x-microsoft.net.object.bytearray.base64 | |
58 | + value : The object must be serialized into a byte array | |
59 | + : using a System.ComponentModel.TypeConverter | |
60 | + : and then encoded with base64 encoding. | |
61 | + --> | |
62 | + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |
63 | + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |
64 | + <xsd:element name="root" msdata:IsDataSet="true"> | |
65 | + <xsd:complexType> | |
66 | + <xsd:choice maxOccurs="unbounded"> | |
67 | + <xsd:element name="metadata"> | |
68 | + <xsd:complexType> | |
69 | + <xsd:sequence> | |
70 | + <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |
71 | + </xsd:sequence> | |
72 | + <xsd:attribute name="name" use="required" type="xsd:string" /> | |
73 | + <xsd:attribute name="type" type="xsd:string" /> | |
74 | + <xsd:attribute name="mimetype" type="xsd:string" /> | |
75 | + <xsd:attribute ref="xml:space" /> | |
76 | + </xsd:complexType> | |
77 | + </xsd:element> | |
78 | + <xsd:element name="assembly"> | |
79 | + <xsd:complexType> | |
80 | + <xsd:attribute name="alias" type="xsd:string" /> | |
81 | + <xsd:attribute name="name" type="xsd:string" /> | |
82 | + </xsd:complexType> | |
83 | + </xsd:element> | |
84 | + <xsd:element name="data"> | |
85 | + <xsd:complexType> | |
86 | + <xsd:sequence> | |
87 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
88 | + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |
89 | + </xsd:sequence> | |
90 | + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |
91 | + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |
92 | + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |
93 | + <xsd:attribute ref="xml:space" /> | |
94 | + </xsd:complexType> | |
95 | + </xsd:element> | |
96 | + <xsd:element name="resheader"> | |
97 | + <xsd:complexType> | |
98 | + <xsd:sequence> | |
99 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
100 | + </xsd:sequence> | |
101 | + <xsd:attribute name="name" type="xsd:string" use="required" /> | |
102 | + </xsd:complexType> | |
103 | + </xsd:element> | |
104 | + </xsd:choice> | |
105 | + </xsd:complexType> | |
106 | + </xsd:element> | |
107 | + </xsd:schema> | |
108 | + <resheader name="resmimetype"> | |
109 | + <value>text/microsoft-resx</value> | |
110 | + </resheader> | |
111 | + <resheader name="version"> | |
112 | + <value>2.0</value> | |
113 | + </resheader> | |
114 | + <resheader name="reader"> | |
115 | + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
116 | + </resheader> | |
117 | + <resheader name="writer"> | |
118 | + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
119 | + </resheader> | |
120 | +</root>(No newline at end of file) |
+++ KHPANEL/ucTempControl.Designer.cs
... | ... | @@ -0,0 +1,215 @@ |
1 | + | |
2 | +namespace KHPANEL | |
3 | +{ | |
4 | + partial class ucTempControl | |
5 | + { | |
6 | + /// <summary> | |
7 | + /// 필수 디자이너 변수입니다. | |
8 | + /// </summary> | |
9 | + private System.ComponentModel.IContainer components = null; | |
10 | + | |
11 | + /// <summary> | |
12 | + /// 사용 중인 모든 리소스를 정리합니다. | |
13 | + /// </summary> | |
14 | + /// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param> | |
15 | + protected override void Dispose(bool disposing) | |
16 | + { | |
17 | + if (disposing && (components != null)) | |
18 | + { | |
19 | + components.Dispose(); | |
20 | + } | |
21 | + base.Dispose(disposing); | |
22 | + } | |
23 | + | |
24 | + #region 구성 요소 디자이너에서 생성한 코드 | |
25 | + | |
26 | + /// <summary> | |
27 | + /// 디자이너 지원에 필요한 메서드입니다. | |
28 | + /// 이 메서드의 내용을 코드 편집기로 수정하지 마세요. | |
29 | + /// </summary> | |
30 | + private void InitializeComponent() | |
31 | + { | |
32 | + this.label_Title = new System.Windows.Forms.Label(); | |
33 | + this.panel_Title = new System.Windows.Forms.Panel(); | |
34 | + this.circularProgressBar1 = new KHPANEL.CircularProgressBar(); | |
35 | + this.label1 = new System.Windows.Forms.Label(); | |
36 | + this.panel1 = new System.Windows.Forms.Panel(); | |
37 | + this.label_Time = new System.Windows.Forms.Label(); | |
38 | + this.label3 = new System.Windows.Forms.Label(); | |
39 | + this.panel2 = new System.Windows.Forms.Panel(); | |
40 | + this.label_Temp = new System.Windows.Forms.Label(); | |
41 | + this.labelControl_SetTime = new DevExpress.XtraEditors.LabelControl(); | |
42 | + this.labelControl_SetTemp = new DevExpress.XtraEditors.LabelControl(); | |
43 | + this.panel_Title.SuspendLayout(); | |
44 | + this.panel1.SuspendLayout(); | |
45 | + this.panel2.SuspendLayout(); | |
46 | + this.SuspendLayout(); | |
47 | + // | |
48 | + // label_Title | |
49 | + // | |
50 | + this.label_Title.AutoSize = true; | |
51 | + this.label_Title.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | |
52 | + this.label_Title.Location = new System.Drawing.Point(51, 17); | |
53 | + this.label_Title.Name = "label_Title"; | |
54 | + this.label_Title.Size = new System.Drawing.Size(90, 32); | |
55 | + this.label_Title.TabIndex = 0; | |
56 | + this.label_Title.Text = "HBT01"; | |
57 | + // | |
58 | + // panel_Title | |
59 | + // | |
60 | + this.panel_Title.Controls.Add(this.label_Title); | |
61 | + this.panel_Title.Dock = System.Windows.Forms.DockStyle.Top; | |
62 | + this.panel_Title.Location = new System.Drawing.Point(0, 0); | |
63 | + this.panel_Title.Name = "panel_Title"; | |
64 | + this.panel_Title.Size = new System.Drawing.Size(192, 61); | |
65 | + this.panel_Title.TabIndex = 1; | |
66 | + // | |
67 | + // circularProgressBar1 | |
68 | + // | |
69 | + this.circularProgressBar1.BackColor = System.Drawing.Color.Transparent; | |
70 | + this.circularProgressBar1.BarColor1 = System.Drawing.Color.LightCyan; | |
71 | + this.circularProgressBar1.BarColor2 = System.Drawing.Color.DodgerBlue; | |
72 | + this.circularProgressBar1.BarWidth = 5F; | |
73 | + this.circularProgressBar1.Cursor = System.Windows.Forms.Cursors.IBeam; | |
74 | + this.circularProgressBar1.Font = new System.Drawing.Font("Segoe UI", 15F); | |
75 | + this.circularProgressBar1.ForeColor = System.Drawing.Color.Transparent; | |
76 | + this.circularProgressBar1.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.BackwardDiagonal; | |
77 | + this.circularProgressBar1.LineColor = System.Drawing.Color.Transparent; | |
78 | + this.circularProgressBar1.LineWidth = 1; | |
79 | + this.circularProgressBar1.Location = new System.Drawing.Point(11, 63); | |
80 | + this.circularProgressBar1.Maximum = ((long)(100)); | |
81 | + this.circularProgressBar1.MinimumSize = new System.Drawing.Size(100, 100); | |
82 | + this.circularProgressBar1.Name = "circularProgressBar1"; | |
83 | + this.circularProgressBar1.ProgressShape = KHPANEL.CircularProgressBar._ProgressShape.Flat; | |
84 | + this.circularProgressBar1.Size = new System.Drawing.Size(171, 171); | |
85 | + this.circularProgressBar1.TabIndex = 2; | |
86 | + this.circularProgressBar1.TextMode = KHPANEL.CircularProgressBar._TextMode.None; | |
87 | + this.circularProgressBar1.Value = ((long)(100)); | |
88 | + // | |
89 | + // label1 | |
90 | + // | |
91 | + this.label1.AutoSize = true; | |
92 | + this.label1.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | |
93 | + this.label1.ForeColor = System.Drawing.Color.Gainsboro; | |
94 | + this.label1.Location = new System.Drawing.Point(107, 110); | |
95 | + this.label1.Name = "label1"; | |
96 | + this.label1.Size = new System.Drawing.Size(39, 32); | |
97 | + this.label1.TabIndex = 3; | |
98 | + this.label1.Text = "분"; | |
99 | + // | |
100 | + // panel1 | |
101 | + // | |
102 | + this.panel1.Controls.Add(this.label_Time); | |
103 | + this.panel1.Location = new System.Drawing.Point(45, 111); | |
104 | + this.panel1.Name = "panel1"; | |
105 | + this.panel1.Size = new System.Drawing.Size(72, 30); | |
106 | + this.panel1.TabIndex = 4; | |
107 | + // | |
108 | + // label_Time | |
109 | + // | |
110 | + this.label_Time.Dock = System.Windows.Forms.DockStyle.Fill; | |
111 | + this.label_Time.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | |
112 | + this.label_Time.ForeColor = System.Drawing.Color.Gainsboro; | |
113 | + this.label_Time.Location = new System.Drawing.Point(0, 0); | |
114 | + this.label_Time.Name = "label_Time"; | |
115 | + this.label_Time.Size = new System.Drawing.Size(72, 30); | |
116 | + this.label_Time.TabIndex = 4; | |
117 | + this.label_Time.Text = "Null"; | |
118 | + this.label_Time.TextAlign = System.Drawing.ContentAlignment.MiddleRight; | |
119 | + // | |
120 | + // label3 | |
121 | + // | |
122 | + this.label3.AutoSize = true; | |
123 | + this.label3.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | |
124 | + this.label3.ForeColor = System.Drawing.Color.Gainsboro; | |
125 | + this.label3.Location = new System.Drawing.Point(112, 148); | |
126 | + this.label3.Name = "label3"; | |
127 | + this.label3.Size = new System.Drawing.Size(18, 20); | |
128 | + this.label3.TabIndex = 5; | |
129 | + this.label3.Text = "o"; | |
130 | + // | |
131 | + // panel2 | |
132 | + // | |
133 | + this.panel2.Controls.Add(this.label_Temp); | |
134 | + this.panel2.Location = new System.Drawing.Point(45, 152); | |
135 | + this.panel2.Name = "panel2"; | |
136 | + this.panel2.Size = new System.Drawing.Size(72, 30); | |
137 | + this.panel2.TabIndex = 6; | |
138 | + // | |
139 | + // label_Temp | |
140 | + // | |
141 | + this.label_Temp.Dock = System.Windows.Forms.DockStyle.Fill; | |
142 | + this.label_Temp.Font = new System.Drawing.Font("맑은 고딕", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | |
143 | + this.label_Temp.ForeColor = System.Drawing.Color.Gainsboro; | |
144 | + this.label_Temp.Location = new System.Drawing.Point(0, 0); | |
145 | + this.label_Temp.Name = "label_Temp"; | |
146 | + this.label_Temp.Size = new System.Drawing.Size(72, 30); | |
147 | + this.label_Temp.TabIndex = 4; | |
148 | + this.label_Temp.Text = "Null"; | |
149 | + this.label_Temp.TextAlign = System.Drawing.ContentAlignment.MiddleRight; | |
150 | + // | |
151 | + // labelControl_SetTime | |
152 | + // | |
153 | + this.labelControl_SetTime.Appearance.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold); | |
154 | + this.labelControl_SetTime.Appearance.ForeColor = System.Drawing.Color.Gainsboro; | |
155 | + this.labelControl_SetTime.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; | |
156 | + this.labelControl_SetTime.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; | |
157 | + this.labelControl_SetTime.Location = new System.Drawing.Point(131, 67); | |
158 | + this.labelControl_SetTime.Name = "labelControl_SetTime"; | |
159 | + this.labelControl_SetTime.Size = new System.Drawing.Size(53, 19); | |
160 | + this.labelControl_SetTime.TabIndex = 7; | |
161 | + this.labelControl_SetTime.Text = "xxxx분"; | |
162 | + this.labelControl_SetTime.Visible = false; | |
163 | + // | |
164 | + // labelControl_SetTemp | |
165 | + // | |
166 | + this.labelControl_SetTemp.Appearance.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold); | |
167 | + this.labelControl_SetTemp.Appearance.ForeColor = System.Drawing.Color.Gainsboro; | |
168 | + this.labelControl_SetTemp.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near; | |
169 | + this.labelControl_SetTemp.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; | |
170 | + this.labelControl_SetTemp.Location = new System.Drawing.Point(9, 215); | |
171 | + this.labelControl_SetTemp.Name = "labelControl_SetTemp"; | |
172 | + this.labelControl_SetTemp.Size = new System.Drawing.Size(53, 19); | |
173 | + this.labelControl_SetTemp.TabIndex = 8; | |
174 | + this.labelControl_SetTemp.Text = "123.3˚"; | |
175 | + this.labelControl_SetTemp.Visible = false; | |
176 | + // | |
177 | + // ucTempControl | |
178 | + // | |
179 | + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; | |
180 | + this.BackColor = System.Drawing.Color.Transparent; | |
181 | + this.BackgroundImage = global::KHPANEL.Properties.Resources.h_007; | |
182 | + this.Controls.Add(this.labelControl_SetTemp); | |
183 | + this.Controls.Add(this.labelControl_SetTime); | |
184 | + this.Controls.Add(this.label3); | |
185 | + this.Controls.Add(this.panel2); | |
186 | + this.Controls.Add(this.label1); | |
187 | + this.Controls.Add(this.panel1); | |
188 | + this.Controls.Add(this.panel_Title); | |
189 | + this.Controls.Add(this.circularProgressBar1); | |
190 | + this.Name = "ucTempControl"; | |
191 | + this.Size = new System.Drawing.Size(192, 242); | |
192 | + this.panel_Title.ResumeLayout(false); | |
193 | + this.panel_Title.PerformLayout(); | |
194 | + this.panel1.ResumeLayout(false); | |
195 | + this.panel2.ResumeLayout(false); | |
196 | + this.ResumeLayout(false); | |
197 | + this.PerformLayout(); | |
198 | + | |
199 | + } | |
200 | + | |
201 | + #endregion | |
202 | + | |
203 | + private System.Windows.Forms.Label label_Title; | |
204 | + private System.Windows.Forms.Panel panel_Title; | |
205 | + private CircularProgressBar circularProgressBar1; | |
206 | + private System.Windows.Forms.Label label1; | |
207 | + private System.Windows.Forms.Panel panel1; | |
208 | + private System.Windows.Forms.Label label_Time; | |
209 | + private System.Windows.Forms.Label label3; | |
210 | + private System.Windows.Forms.Panel panel2; | |
211 | + private System.Windows.Forms.Label label_Temp; | |
212 | + public DevExpress.XtraEditors.LabelControl labelControl_SetTime; | |
213 | + public DevExpress.XtraEditors.LabelControl labelControl_SetTemp; | |
214 | + } | |
215 | +} |
+++ KHPANEL/ucTempControl.cs
... | ... | @@ -0,0 +1,105 @@ |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.ComponentModel; | |
4 | +using System.Data; | |
5 | +using System.Drawing; | |
6 | +using System.Linq; | |
7 | +using System.Text; | |
8 | +using System.Threading.Tasks; | |
9 | +using System.Windows.Forms; | |
10 | + | |
11 | +namespace KHPANEL | |
12 | +{ | |
13 | + public partial class ucTempControl : UserControl | |
14 | + { | |
15 | + int m_State = 0; | |
16 | + | |
17 | + Image m_Stop = Properties.Resources.h_007; | |
18 | + Image m_Run = Properties.Resources.h_001; | |
19 | + Image m_Warning = Properties.Resources.h_003; | |
20 | + Image m_Error = Properties.Resources.h_005; | |
21 | + | |
22 | + public ucTempControl() | |
23 | + { | |
24 | + InitializeComponent(); | |
25 | + } | |
26 | + | |
27 | + | |
28 | + | |
29 | + [Category("설정"), Description("표시 텍스트")] | |
30 | + public string LabelText | |
31 | + { | |
32 | + get | |
33 | + { | |
34 | + return this.label_Title.Text; | |
35 | + } | |
36 | + set | |
37 | + { | |
38 | + this.label_Title.Text = value; | |
39 | + 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); | |
40 | + | |
41 | + | |
42 | + } | |
43 | + } | |
44 | + | |
45 | + | |
46 | + [Category("설정"), Description("상태 설정")] | |
47 | + public int State | |
48 | + { | |
49 | + get | |
50 | + { | |
51 | + return this.m_State; | |
52 | + } | |
53 | + set | |
54 | + { | |
55 | + this.m_State = value; | |
56 | + if (m_State == 0) | |
57 | + { | |
58 | + this.BackgroundImage = m_Stop; | |
59 | + } | |
60 | + else if (m_State == 1) | |
61 | + { | |
62 | + this.BackgroundImage = m_Run; | |
63 | + } | |
64 | + else if (m_State == 2) | |
65 | + { | |
66 | + this.BackgroundImage = m_Warning; | |
67 | + } | |
68 | + else if (m_State == 3) | |
69 | + { | |
70 | + this.BackgroundImage = m_Error; | |
71 | + } | |
72 | + } | |
73 | + } | |
74 | + | |
75 | + | |
76 | + [Category("설정"), Description("상태 설정")] | |
77 | + public string Time | |
78 | + { | |
79 | + get | |
80 | + { | |
81 | + return this.label_Time.Text; | |
82 | + } | |
83 | + set | |
84 | + { | |
85 | + this.label_Time.Text = value; | |
86 | + } | |
87 | + } | |
88 | + | |
89 | + | |
90 | + [Category("설정"), Description("상태 설정")] | |
91 | + public string Temp | |
92 | + { | |
93 | + get | |
94 | + { | |
95 | + return this.label_Temp.Text; | |
96 | + } | |
97 | + set | |
98 | + { | |
99 | + this.label_Temp.Text = value; | |
100 | + } | |
101 | + } | |
102 | + | |
103 | + | |
104 | + } | |
105 | +} |
+++ KHPANEL/ucTempControl.resx
... | ... | @@ -0,0 +1,120 @@ |
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<root> | |
3 | + <!-- | |
4 | + Microsoft ResX Schema | |
5 | + | |
6 | + Version 2.0 | |
7 | + | |
8 | + The primary goals of this format is to allow a simple XML format | |
9 | + that is mostly human readable. The generation and parsing of the | |
10 | + various data types are done through the TypeConverter classes | |
11 | + associated with the data types. | |
12 | + | |
13 | + Example: | |
14 | + | |
15 | + ... ado.net/XML headers & schema ... | |
16 | + <resheader name="resmimetype">text/microsoft-resx</resheader> | |
17 | + <resheader name="version">2.0</resheader> | |
18 | + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |
19 | + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |
20 | + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |
21 | + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |
22 | + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |
23 | + <value>[base64 mime encoded serialized .NET Framework object]</value> | |
24 | + </data> | |
25 | + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |
26 | + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |
27 | + <comment>This is a comment</comment> | |
28 | + </data> | |
29 | + | |
30 | + There are any number of "resheader" rows that contain simple | |
31 | + name/value pairs. | |
32 | + | |
33 | + Each data row contains a name, and value. The row also contains a | |
34 | + type or mimetype. Type corresponds to a .NET class that support | |
35 | + text/value conversion through the TypeConverter architecture. | |
36 | + Classes that don't support this are serialized and stored with the | |
37 | + mimetype set. | |
38 | + | |
39 | + The mimetype is used for serialized objects, and tells the | |
40 | + ResXResourceReader how to depersist the object. This is currently not | |
41 | + extensible. For a given mimetype the value must be set accordingly: | |
42 | + | |
43 | + Note - application/x-microsoft.net.object.binary.base64 is the format | |
44 | + that the ResXResourceWriter will generate, however the reader can | |
45 | + read any of the formats listed below. | |
46 | + | |
47 | + mimetype: application/x-microsoft.net.object.binary.base64 | |
48 | + value : The object must be serialized with | |
49 | + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |
50 | + : and then encoded with base64 encoding. | |
51 | + | |
52 | + mimetype: application/x-microsoft.net.object.soap.base64 | |
53 | + value : The object must be serialized with | |
54 | + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |
55 | + : and then encoded with base64 encoding. | |
56 | + | |
57 | + mimetype: application/x-microsoft.net.object.bytearray.base64 | |
58 | + value : The object must be serialized into a byte array | |
59 | + : using a System.ComponentModel.TypeConverter | |
60 | + : and then encoded with base64 encoding. | |
61 | + --> | |
62 | + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |
63 | + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |
64 | + <xsd:element name="root" msdata:IsDataSet="true"> | |
65 | + <xsd:complexType> | |
66 | + <xsd:choice maxOccurs="unbounded"> | |
67 | + <xsd:element name="metadata"> | |
68 | + <xsd:complexType> | |
69 | + <xsd:sequence> | |
70 | + <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |
71 | + </xsd:sequence> | |
72 | + <xsd:attribute name="name" use="required" type="xsd:string" /> | |
73 | + <xsd:attribute name="type" type="xsd:string" /> | |
74 | + <xsd:attribute name="mimetype" type="xsd:string" /> | |
75 | + <xsd:attribute ref="xml:space" /> | |
76 | + </xsd:complexType> | |
77 | + </xsd:element> | |
78 | + <xsd:element name="assembly"> | |
79 | + <xsd:complexType> | |
80 | + <xsd:attribute name="alias" type="xsd:string" /> | |
81 | + <xsd:attribute name="name" type="xsd:string" /> | |
82 | + </xsd:complexType> | |
83 | + </xsd:element> | |
84 | + <xsd:element name="data"> | |
85 | + <xsd:complexType> | |
86 | + <xsd:sequence> | |
87 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
88 | + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |
89 | + </xsd:sequence> | |
90 | + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |
91 | + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |
92 | + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |
93 | + <xsd:attribute ref="xml:space" /> | |
94 | + </xsd:complexType> | |
95 | + </xsd:element> | |
96 | + <xsd:element name="resheader"> | |
97 | + <xsd:complexType> | |
98 | + <xsd:sequence> | |
99 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
100 | + </xsd:sequence> | |
101 | + <xsd:attribute name="name" type="xsd:string" use="required" /> | |
102 | + </xsd:complexType> | |
103 | + </xsd:element> | |
104 | + </xsd:choice> | |
105 | + </xsd:complexType> | |
106 | + </xsd:element> | |
107 | + </xsd:schema> | |
108 | + <resheader name="resmimetype"> | |
109 | + <value>text/microsoft-resx</value> | |
110 | + </resheader> | |
111 | + <resheader name="version"> | |
112 | + <value>2.0</value> | |
113 | + </resheader> | |
114 | + <resheader name="reader"> | |
115 | + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
116 | + </resheader> | |
117 | + <resheader name="writer"> | |
118 | + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
119 | + </resheader> | |
120 | +</root>(No newline at end of file) |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?