Esempio n. 1
0
        private void PLOCK()
        {
            if (checkBox6.Checked && textBox5.Text.Length < 2)
            {
                return;
            }

            if (textBox1.Text.Length != 8)
            {
                MessageBox.Show("Input AccessPassword");
                textBox1.Focus();
                return;
            }

            AT_UHF_NET.AccessResult Result = AT_UHF_NET.AccessResult.Unknown;
            string EPC = textBox5.Text.Trim();

            AT_UHF_NET.ActField ActionField = AT_UHF_NET.ActField.EPC;
            string AccessPWD = textBox1.Text;
            bool   bSecured  = radioButton1.Checked;

            if (checkBox6.Checked) //Tag Select
            {
                Result = Main.rfid.Permalock_TagSelect_Done(ActionField, bSecured, AccessPWD, EPC);
            }
            else
            {
                Result = Main.rfid.Permalock_Done(ActionField, bSecured, AccessPWD);
            }

            //textBox8.Text = Result.ToString();
            textBox8.Text = Main.rfid.GET_LAST_ERROR();
            AT_UHF_NET.CUHFHost.PlaySuccess();
        }
Esempio n. 2
0
        private void PLOCK()
        {
            if (checkBox6.Checked && textBox5.Text.Length < 2)
            {
                return;
            }

            if (textBox1.Text.Length != 8)
            {
                MessageBox.Show("Input AccessPassword");
                textBox1.Focus();
                return;
            }

            string EPC = textBox5.Text.Trim();

            AT_UHF_NET.ActField ActionField = AT_UHF_NET.ActField.EPC;
            string AccessPWD = textBox1.Text;
            bool   bSecured  = radioButton1.Checked;

            if (checkBox6.Checked) //Tag Select
            {
                Main.rfid.Permalock_TagSelect(ActionField, bSecured, AccessPWD, EPC);
            }
            else
            {
                Main.rfid.Permalock(ActionField, bSecured, AccessPWD);
            }
        }