private void buttonSlecetTag_Click(object sender, EventArgs e)
 {
     AttachCallback(false);
     using (TagSearchForm InvForm = new TagSearchForm())
     {
         if (InvForm.ShowDialog() == DialogResult.OK)
         {
             textBoxTagID.Text = InvForm.epc;
         }
     }
     AttachCallback(true);
 }
Example #2
0
 private void lk_epc_Click(object sender, EventArgs e)
 {
     //Stop current process
     if (Program.ReaderXP.State != RFState.IDLE)
     {
         Program.ReaderXP.StopOperation(true);
     }
     AttachCallback(false);
     using (TagSearchForm InvForm = new TagSearchForm())
     {
         if (InvForm.ShowDialog() == DialogResult.OK)
         {
             lk_epc.Text = InvForm.epc;
         }
     }
     AttachCallback(true);
 }
        private void lk_epc_Click(object sender, EventArgs e)
        {
            //Stop current process
            if (Program.ReaderXP.State != RFState.IDLE)
            {
                return;
            }

            AttachCallback(false);
            using (TagSearchForm InvForm = new TagSearchForm())
            {
                if (InvForm.ShowDialog() == DialogResult.OK)
                {
                    lk_epc.Text = TargetEPC = InvForm.epc;
                }
            }
            AttachCallback(true);
        }
Example #4
0
        private void lk_epc_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            //Stop current process
            //        if (Program.ReaderXP.State != RFState.IDLE)
            {
                //           return;
            }

            AttachCallback(false);
            using (TagSearchForm InvForm = new TagSearchForm())
            {
                if (InvForm.ShowDialog() == DialogResult.OK)
                {
                    lk_epc.Text = TargetEPC = InvForm.epc;
                }
            }
            AttachCallback(true);
        }
Example #5
0
        private void buttonSlecetTag_Click(object sender, EventArgs e)
        {
            //Stop current operation
            if (Program.ReaderXP.State == RFState.BUSY)
            {
                Program.ReaderXP.StopOperation(true);
            }
            while (Program.ReaderXP.State != RFState.IDLE)
            {
                Thread.Sleep(10);
                Application.DoEvents();
            }

            AttachCallback(false);
            using (TagSearchForm InvForm = new TagSearchForm())
            {
                if (InvForm.ShowDialog() == DialogResult.OK)
                {
                    textBoxTagID.Text = InvForm.epc;
                }
            }
            AttachCallback(true);
        }
        private void btn_scan_Click(object sender, EventArgs e)
        {
            //Stop current operation
            if (Program.ReaderXP.State == RFState.BUSY)
            {
                Program.ReaderXP.StopOperation(true);
            }
            while (Program.ReaderXP.State != RFState.IDLE)
            {
                Thread.Sleep(10);
                Application.DoEvents();
            }

            AttachCallback(false);

            using (TagSearchForm inv = new TagSearchForm())
            {
                if (inv.ShowDialog() == DialogResult.OK)
                {
                    TargetEPC = tb_epc.Text = inv.epc;
                }
            }
            AttachCallback(true);
        }
        private void lb_epc_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            //Stop current operation
            if (Program.ReaderXP.State == RFState.BUSY)
            {
                Program.ReaderXP.StopOperation(true);
            }
            while (Program.ReaderXP.State != RFState.IDLE)
            {
                Thread.Sleep(10);
                Application.DoEvents();
            }

            AttachCallback(false);

            using (TagSearchForm inv = new TagSearchForm())
            {
                if (inv.ShowDialog() == DialogResult.OK)
                {
                    TargetEPC = lb_epc.Text = inv.epc;
                }
            }
            AttachCallback(true);
        }