Example #1
0
        private static void HttpCommunicator_Error(object sender, DyEventArgs e)
        {
            string receive = Encoding.ASCII.GetString(e.Data);
            string content = receive.Split("&")[0];
            string line    = receive.Split("&")[1];

            Console.WriteLine($"{e.Message}\n{content},{line}");
            QRCodeDataObject code = new QRCodeDataObject();

            code.Code         = content;
            code.AssemblyLine = line;
            code.CreateTime   = DateTime.Now;
            qrCodeService.Add(code);
        }
Example #2
0
 private static void scanerError(object sender, DyEventArgs e)
 {
     Console.WriteLine(e.Message);
 }