private void bIsoId_Click(object sender, EventArgs e)
 {
     if (IsoReading == 0)
     {
         Api.ClearIdBuf();
         lInfo.Items.Clear();
         lInfo.Items.Add("Start multiply tags identify!");
         TagCnt = 0;
         if (cIsoTimes.SelectedIndex > 0)
         {
             ScanTimes = Convert.ToInt16(cIsoTimes.Text);
         }
         else
         {
             ScanTimes = 9999;
         }
         timer1.Interval = (tIsoSpeed.Value + 1) * 20;
         timer1.Enabled  = true;
         bIsoId.Text     = "Stop";
         IsoReading      = 1;
     }
     else
     {
         timer1.Enabled = false;
         IsoReading     = 0;
         bIsoId.Text    = "Identify";
     }
 }
Exemple #2
0
 /* private void bEpcId_Click(object sender, EventArgs e)
  * {
  *   if (EpcReading == 0)
  *   {
  *       Reader1.ClearIdBuf();
  *       lInfo.Items.Clear();
  *       lInfo.Items.Add("Start multiply tags identify!");
  *       TagCnt = 0;
  *       //if (cEpcTimes.SelectedIndex > 0)
  *       //    ScanTimes = Convert.ToInt16(cEpcTimes.Text);
  *       //else
  *           ScanTimes = 99999999;
  *       timerScanEPC.Interval = 1000;
  *       timerScanEPC.Enabled = true;
  *       bEpcId.Text = "停止";
  *       groupBox1.Visible = false;
  *       groupBox3.Visible = false;
  *       groupBox7.Visible = false;
  *       lvTagList.Visible = false;
  *       bEpcId.Visible = false;
  *       bClear.Visible = false;
  *       btnExit.Visible = false;
  *
  *
  *       EpcReading = 1;
  *   }
  *   else
  *   {
  *       timerScanEPC.Enabled = false;
  *       EpcReading = 0;
  *       bEpcId.Text = "识别";
  *   }
  * }*/
 private void bEpcId_Click(object sender, EventArgs e)
 {
     if (EpcReading == 0)
     {
         Reader1.ClearIdBuf();
         lInfo.Items.Clear();
         lInfo.Items.Add("Start multiply tags identify!");
         TagCnt = 0;
         if (cEpcTimes.SelectedIndex > 0)
         {
             ScanTimes = Convert.ToInt16(cEpcTimes.Text);
         }
         else
         {
             ScanTimes = 9999;
         }
         // timerScanEPC.Interval = (tEpcSpeed.Value + 1) * 20;
         timerScanEPC.Enabled = true;
         bEpcId.Text          = "Stop";
         EpcReading           = 1;
     }
     else
     {
         timerScanEPC.Enabled = false;
         EpcReading           = 0;
         bEpcId.Text          = "Identify";
     }
 }
Exemple #3
0
 private void startRead()
 {
     if (EpcReading == 0)
     {
         Api.ClearIdBuf();
         TagCnt     = 0;
         ScanTimes  = 9999;
         EpcReading = 1;
     }
     else
     {
         EpcReading = 0;
     }
 }
Exemple #4
0
        private void StartReading()
        {
            if (EpcReading == 0)
            {
                Api.ClearIdBuf();

                listView1.Items.Add("Start multiply tags identify!");
                TagCnt          = 0;
                timer2.Interval = (2 + 1) * 20;
                timer2.Enabled  = true;

                EpcReading = 1;
                mySet      = new HashSet <string>();
            }
            else
            {
                timer2.Enabled = false;
                EpcReading     = 0;
                this.BackColor = Color.MidnightBlue;
            }
        }