Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            backgroundWorker1.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorker1_RunWorkerCompleted);
            backgroundWorker1.DoWork += new DoWorkEventHandler(backgroundWorker1_DoWork);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);

            //初始化rfidreaderlist
            rfidreaderlist = xmlreaderConvert.getRFIDReaderList("reader");
            readFre = xmlreaderConvert.getTagsReadFreq();

            //预过滤
            long prefilterTimeInterval = xmlreaderConvert.getFilterInterval();
            prefilter = new Prefilter.PrefilterThread(prefilterTimeInterval,this);
            prefilter.start();

            //断线重连
            reconnectThread = new Reconnect.ReconnectThread(this);
        }
Exemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            backgroundWorker1.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorker1_RunWorkerCompleted);
            backgroundWorker1.DoWork             += new DoWorkEventHandler(backgroundWorker1_DoWork);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);

            //初始化rfidreaderlist
            rfidreaderlist = xmlreaderConvert.getRFIDReaderList("reader");
            readFre        = xmlreaderConvert.getTagsReadFreq();

            //预过滤
            long prefilterTimeInterval = xmlreaderConvert.getFilterInterval();

            prefilter = new Prefilter.PrefilterThread(prefilterTimeInterval, this);
            prefilter.start();

            //断线重连
            reconnectThread = new Reconnect.ReconnectThread(this);
        }