예제 #1
0
 public Command(string name, string command_Head, string command_Value, Chatting chatinfo, object barcodelist)
 {
     this.name          = name;
     this.head          = command_Head;
     this.command_Value = command_Value;
     this.chatinfo      = chatinfo;
     this.barcodes      = (List <Barcode>)barcodelist;
 }
예제 #2
0
        public Form1()
        {
            InitializeComponent();
            this.Text    = machine.Name;
            this.TopMost = true;
            chatting     = new Chatting(machine.Ip, machine.Name, codes);

            //StringBuilder sb = new StringBuilder();
            //sb.AppendLine("---------[투입 현황]");
            //sb.AppendLine("---------[2019-03-02 6:44:50]");
            //sb.AppendLine("*[1234]	1");
            //sb.AppendLine("*[1235]	1");
            //sb.AppendLine("----------------------------");

            ////  바코드 문자열잘라줄때쓰자
            //string temp = sb.ToString().Remove(0, sb.ToString().IndexOf('*')).Replace("-", "").Trim();
            //string[] temp2 = temp.Split('*');
            //MessageBox.Show(temp);
            //foreach (var item in temp2)
            //{
            //    MessageBox.Show(item);
            //}
        }