Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            CSLibrary.Constants.Result result = CSLibrary.Constants.Result.UNKNOWN_OPERATION;

            if (radioButton1.Checked)
            {
                result = Program.ReaderXP.SetInterface(CSLibrary.HighLevelInterface.INTERFACETYPE.IPV4);
            }
            else if (radioButton2.Checked)
            {
                result = Program.ReaderXP.SetInterface(CSLibrary.HighLevelInterface.INTERFACETYPE.USB);
            }
            else if (radioButton3.Checked)
            {
                result = Program.ReaderXP.SetInterface(CSLibrary.HighLevelInterface.INTERFACETYPE.SERIAL);
            }
            else
            {
                this.Close();
            }

            if (result == CSLibrary.Constants.Result.OK)
            {
                exit = true;
                this.Close();
            }
            else
            {
                MessageBox.Show("Set Interface Error : " + result.ToString());
            }
        }
Esempio n. 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            CSLibrary.Constants.Result result = CSLibrary.Constants.Result.UNKNOWN_OPERATION;

            if (radioButton1.Checked)
            {
                result = Program.ReaderXP.SetApiMode(CSLibrary.Constants.ApiMode.HIGHLEVEL);
            }
            else if (radioButton2.Checked)
            {
                result = Program.ReaderXP.SetApiMode(CSLibrary.Constants.ApiMode.LOWLEVEL);
            }
            else
            {
                this.Close();
            }

            if (result == CSLibrary.Constants.Result.OK)
            {
                exit = true;
                this.Close();
            }
            else
            {
                MessageBox.Show("Set Api Mode Error : " + result.ToString());
            }
        }