Пример #1
0
        //  바코드 리스트를 보내는 메소드
        public void BarcodeMsgMaker(List <Barcode> barcodes)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("---------[투입 현황]" + this.Name);
            sb.AppendLine(NowTime());
            foreach (var item in barcodes)
            {
                sb.AppendLine("*[" + item.Barcode_Code + "]" + "\t" + item.Barcode_Count);
            }
            sb.AppendLine("----------------------------");

            chatinfo.SendMsg(sb.ToString());
        }
Пример #2
0
 private void checkBox1_CheckedChanged(object sender, EventArgs e)
 {
     if (chatting.Client == null)
     {
         txt_Log.Text += "erro server is not connected.\n";
         return;
     }
     if (((CheckBox)sender).Text == "err_1")
     {
         Erro tempErro = new Erro(1);
         erros.Add(tempErro);
         chatting.SendMsg(tempErro.Erro_String);
         txt_Log.Text += "erro_1 Exeption\n";
     }
     else if (((CheckBox)sender).Text == "err_2")
     {
         Erro tempErro = new Erro(2);
         erros.Add(tempErro);
         chatting.SendMsg(tempErro.Erro_String);
         txt_Log.Text += "erro_2 Exeption\n";
     }
 }