public ScanInventory_Form(StartAudit_Form appForm)
        {
            InitializeComponent();
            this.m_appForm = appForm;
            status = "Connect";
            this.m_UpdateReadHandler = new UpdateRead(myUpdateRead);
            this.m_UpdateStatusHandler = new UpdateStatus(myUpdateStatus);
            this.m_ReadTag = new Symbol.RFID3.TagData();

            m_ReaderAPI = m_appForm.m_ReaderAPI;
            m_ReaderAPI = new RFIDReader("127.0.0.1", 5084, 0);

            this.m_AntennaInfoForm = m_appForm.m_AntennaInfoForm;
            this.m_AntennaConfigForm = m_appForm.m_AntennaConfigForm;
            this.m_PostFilterForm = m_appForm.m_PostFilterForm;
            this.m_AccessFilterForm = m_appForm.m_AccessFilterForm;
            this.m_TriggerForm = m_appForm.m_TriggerForm;

            this.m_ReaderMgmt = new ReaderManagement();
            this.m_TagTable = new Hashtable(1023);
            this.m_AccessOpResult = new AccessOperationResult();
            this.m_IsConnected = false;
            this.m_TagTotalCount = 0;
            this.m_ReaderInitiatedDisconnectionReceived = false;
            this.m_isBeepingEnabled = true;
        }
        public FrmBarcodeScanSearch(StartAudit_Form appForm)
        {
            InitializeComponent();
            this.m_appForm = appForm;
            status = "Connect";
            this.m_UpdateReadHandler = new UpdateRead(myUpdateRead);
            this.m_UpdateStatusHandler = new UpdateStatus(myUpdateStatus);
            this.m_ReadTag = new Symbol.RFID3.TagData();

            m_ReaderAPI = m_appForm.m_ReaderAPI;
            m_ReaderAPI = new RFIDReader("127.0.0.1", 5084, 0);

            this.m_AntennaInfoForm = m_appForm.m_AntennaInfoForm;
            this.m_AntennaConfigForm = m_appForm.m_AntennaConfigForm;
            this.m_PostFilterForm = m_appForm.m_PostFilterForm;
            this.m_AccessFilterForm = m_appForm.m_AccessFilterForm;
            this.m_TriggerForm = m_appForm.m_TriggerForm;

            this.m_ReaderMgmt = new ReaderManagement();
            this.m_TagTable = new Hashtable(1023);
            this.m_AccessOpResult = new AccessOperationResult();
            this.m_IsConnected = false;
            this.m_TagTotalCount = 0;
            this.m_ReaderInitiatedDisconnectionReceived = false;
            this.m_isBeepingEnabled = true;

            //Barcode scan start
            try
            {
                // Let's use the first available scanner.
                scanner = new Barcode2();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Barcode2 instantiation failed with " + ex.Message);
                this.Close();
                return;
            }

            // Let's use triggers to fire up the scanner.
            scanner.Config.TriggerMode = TRIGGERMODES.HARD;

            // Register a scan event handler
            //scanner.OnScan += new Barcode2.OnScanHandler(barcode21_OnScan);
            scanner.OnScan += new Barcode2.OnScanHandler(barcode21_OnScan);
               // scanner.OnStatus += new Barcode2.OnStatusHandler(barcode21_OnStatus);

            //Barcode scan end
        }
예제 #3
0
        public StartAudit_Form()
        {
            InitializeComponent();
            status = "Connect";

            m_AntennaInfoForm = new AntennaInfoForm(this);
            m_AntennaConfigForm = new AntennaConfigForm(this);
            m_PostFilterForm = new PostFilterForm(this);
            m_AccessFilterForm = new AccessFilterForm(this);
            m_TriggerForm = new TriggerForm(this);

            m_ReaderMgmt = new ReaderManagement();
            m_AccessOpResult = new AccessOperationResult();
            m_IsConnected = false;
            m_ReaderInitiatedDisconnectionReceived = false;
            sinfm = new ScanInventory_Form(this);
        }