public void configXDPM(double power = 28, int searchMode = 1, ushort session = 2)
        {
            try
            {
                uint num = 0u;
                if (searchMode != 1)
                {
                    if (searchMode == 2)
                    {
                        num = 0u;
                    }
                }
                else
                {
                    num = 1u;
                }
                uint num2 = 0u;
                mReaderXDPM.SetSession(session, num2, num);

                for (uint i = 0; i <= 3; i++)
                {
                    mReaderXDPM.SetAntennaPort(i, true);
                    mReaderXDPM.SetAntennaPower((uint)mPower, i);
                }
            }
            catch (Exception)
            {
            }
        }