using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; namespace UIControl { public partial class Unloader { public class CPort { public int SortKey { get; set; } public int portNo { get; set; } public string portName { get; set; } public int idx { get; set; } [Browsable(false)] public Rectangle rect_title { get; set; } [Browsable(false)] public Rectangle rect { get; set; } [Browsable(false)] public Rectangle rect_count { get; set; } [Browsable(false)] public Rectangle rect_signL { get; set; } [Browsable(false)] public Rectangle rect_signR { get; set; } public List reelSID; public int cartSize { get; set; } public ushort cartState { get; set; } public Boolean SIDUpdate { get; set; } /// /// 이값은 PLC에서 읽은 값이다 /// public int reelCount { get; set; } public int reelCountPLC { get; set; } public string Mode { get; set; } public CPort() { SortKey = 0; idx = -1; Mode = "AUTO";// ePortMode.Auto; rect_title = Rectangle.Empty; rect = Rectangle.Empty; rect_count = Rectangle.Empty; rect_signL = Rectangle.Empty; rect_signR = Rectangle.Empty; reelSID = new List(); cartSize = 0; cartState = 0; Clear(); SIDUpdate = true; } public void Clear() { reelSID.Clear();// = new string[0];// string.Empty; reelCount = 0; reelCountPLC = 0; //기존에 있었는데 지웠다면 업데이트해야함 if (reelSID.Count > 0) SIDUpdate = true; } } } }