Beispiel #1
0
        void disconnectScanner()
        {
            Epos2ErrorStatus result = Epos2ErrorStatus.Success;

            if (barcodeScanner_ == null)
            {
                return;
            }

            result = (Epos2ErrorStatus)barcodeScanner_.Disconnect;
            if (result != Epos2ErrorStatus.Success)
            {
                ShowMsg.showErrorEpos(result, "Disconnect");
            }
        }
Beispiel #2
0
        public bool initializeObject()
        {
            if (barcodeScanner_ != null)
            {
                finalizeObject();
            }

            barcodeScanner_ = new Epos2BarcodeScanner();              //[[Epos2BarcodeScanner alloc] init];
            if (barcodeScanner_ == null)
            {
                ShowMsg.showErrorEpos(Epos2ErrorStatus.ErrMemory, "Init");
                return(false);
            }

            barcodeScanner_.SetScanEventDelegate(new Epos2Scan(this));

            return(true);
        }
Beispiel #3
0
        bool connectScanner()
        {
            Epos2ErrorStatus result = Epos2ErrorStatus.Success;

            if (barcodeScanner_ == null)
            {
                return(false);
            }

            result = (Epos2ErrorStatus)barcodeScanner_.Connect(textTarget.Text, -2);


            if (result != Epos2ErrorStatus.Success)
            {
                ShowMsg.showErrorEpos(result, "connect");
                finalizeObject();
                return(false);
            }

            return(true);
        }