示例#1
0
 private void InitAllHArdware()
 {
     _listener = new BarcodeListener(this);
     _listener.RemoveDataReceivedHandler();
     InitializeFiscalPrinter();
     reverseInit = true;
 }
示例#2
0
 private void reverseInitDevices_Click(object sender, EventArgs e)
 {
     Program.UserDevices = new List <Device>();
     this.CloseSerialConnection();
     _listener      = null;
     _fiscalPrinter = null;
     if (reverseInit)
     {
         InitializeFiscalPrinter();
         _listener   = new BarcodeListener(this);
         reverseInit = false;
     }
     else
     {
         _listener = new BarcodeListener(this);
         InitializeFiscalPrinter();
         reverseInit = true;
     }
 }