Beispiel #1
0
        private void frmRFIDMain_Load(object sender, EventArgs e)
        {
            dgvTracker.DataSource = DataTables.bsTracker;
            dgvMaster.DataSource  = DataTables.bsMaster;
            // bind data source for dgvTracker and Master

            mReader.MessageReceived += MReader_MessageReceived;
            // subscribe to event that allows us to receive response from the Reader

            AsynchronousSocketListener.PassMessage.MessageReceived += (s, v) =>
                                                                      HandleData(v.Message.ToString());
            // subscribe to event that brings data received by TCP socket from static Listener class file

            TagTimer.RemoveSignal.SignalReceived += (s, v) =>
                                                    DataTables.RemoveFromMaster(v.Tag);
            // subscribe to event that tells us when to remove a tag from our list

            DataTables.RefreshSignal.SignalReceived += (s, v) =>
                                                       Refresh(v.B);
            //subscribe to event that tells us when to refresh DGVs

            DataTables.InsertSignal.SignalReceived += (s, v) =>
                                                      InsertIntoRFIDTracker(v.T);

            con.changeCon(Settings.Default.Pipe);
            // sets up the connection string for interaction with LocalDB

            bwConnect.RunWorkerAsync();
            // attempt to connect to the Reader for cmd interaction
        }
Beispiel #2
0
 private void ConsumeTag(tagByte tag)
 {
     DataTables.UpdateDTs(tag);
 }
Beispiel #3
0
 public frmRFIDMain()
 {
     InitializeComponent();
     DataTables.InitDTs();
     TagTimer.InitTimer();
 }