Beispiel #1
0
        private void readTag_Button_Click(object sender, EventArgs e)
        {
            NurApi.Tag tag = null;
            int        usedTxLevel;

            if (NurUtils.SearchNearestTag(hNur, true, out tag, out usedTxLevel) > 0)
            {
                InitFilter(tag.GetEpcString());
            }
        }
Beispiel #2
0
 /// <summary>
 /// Handles the Click event of the pickUpButton control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 private void pickUpButton_Click(object sender, EventArgs e)
 {
     try
     {
         int        usedTxLevel;
         NurApi.Tag strongestTag;
         int        nurbeOfTags = NurUtils.SearchNearestTag(hNur, true, out strongestTag, out usedTxLevel);
         if (nurbeOfTags == 1)
         {
             SetTargetTag(NurApi.BANK_EPC, 32, strongestTag.epc);
         }
     }
     catch (NurApiException ex)
     {
         MessageBox.Show(ex.Message, Program.appName, MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1);
     }
 }