Esempio n. 1
0
        protected virtual void OnLabelPrintReceived(LabelPrintEventArgs e)
        {
            if (!PrintFromFile)
            {
                LabelPrintReceived?.Invoke(this, e);
            }
            else
            {
                var p = new LabelPrinter(e);
                p.UseFile = true;
                var result = p.PrintLabel();
                e.Response = result.ToString();
                if (Logger.Enabled)
                    Logger.Log(result.ToString());

                var resp = new ListenerResponse();
                resp.FinalPrintResponse(e);
            }
        }
 protected virtual void OnLabelPrintReceived(LabelPrintEventArgs e)
 {
     LabelPrintReceived?.Invoke(this, e);
 }