Example #1
0
        /// <summary>
        /// RFID Active
        /// </summary>
        /// <returns></returns>
        private bool SwitchRfid()
        {
            bool isRight = true;

            try
            {
                _pdamodel = PDAInfo.GetDevModel();
                if (_pdamodel == PDAInfo.DevModel.XC2903)
                {
                    bool isext = RfidControl.IsExtRfid();
                    if (isext)
                    {
                        RfidControl.SwitchRfid(RfidControl.RFIDModuleFlag.Extern);
                    }
                    else
                    {
                        RfidControl.SwitchRfid(RfidControl.RFIDModuleFlag.Internal);
                    }
                }
                else
                {
                    RfidControl.Active();
                }
            }
            catch
            {
                isRight = false;
            }

            return(isRight);
        }
Example #2
0
 public FrBattery()
 {
     InitializeComponent();
     _pdatype = PDAInfo.GetDevModel();
     GetInfoAsync();
     timerGetPower.Enabled = true;
 }
Example #3
0
 public void SelBarCode()
 {
     PDAInfo.DevModel _pdamodel = PDAInfo.GetDevModel();
     if (_pdamodel == PDAInfo.DevModel.XC2903)
     {
         CameraBarcodeSwitch.SelBarCode();
     }
     ;
 }
Example #4
0
        public static bool IsXC2903()
        {
            bool IsXC2903 = false;

            _pdamodel = PDAInfo.GetDevModel();
            if (_pdamodel == PDAInfo.DevModel.XC2903)
            {
                IsXC2903 = true;
            }
            return(IsXC2903);
        }
Example #5
0
        /// <summary>
        /// Is XC2903
        /// </summary>
        /// <returns></returns>
        public static bool IsXC2903()
        {
            bool IsXC2903 = false;

            _pdamodel = PDAInfo.GetDevModel();
            if (_pdamodel == PDAInfo.DevModel.XC2903)
            {
                CameraBarcodeSwitch.SelBarCode();
                IsXC2903 = true;
            }
            return(IsXC2903);
        }
Example #6
0
        private void Startup(object sender, EventArgs e)
        {
            condoc = new XmlHelper();
            condoc.LoadXmlDocument("sys.config");
            string strauto = condoc.GetSingleAttributeValue("startup", "mode");

            _pdamodel = PDAInfo.GetDevModel();
            //if (strauto == "auto")
            //{
            //    //this.timerLoad.Enabled = true;
            LoaderAsync();
            //}
            //else if (strauto == "manual")
            //{
            //    FrDemolist demolist = new FrDemolist();
            //    progressBarWait.Value = progressBarWait.Maximum;
            //    demolist.Load += new EventHandler(showform_Load);
            //    demolist.ShowDialog();
            //    this.Close();
            //}
            //else
            //{
            //    demoname = condoc.GetSingleAttributeValue("startup", "default");
            //    FrTagMain form = new FrTagMain();
            //    switch (demoname)
            //    {
            //        case "F6C":
            //            RfidConfig._rfidModel = RFIDModule.F6C;
            //            break;
            //        case "F6B":
            //            RfidConfig._rfidModel = RFIDModule.F6B;
            //            break;
            //        case "F6G":
            //            RfidConfig._rfidModel = RFIDModule.F6G;
            //            break;
            //        default:
            //            MessageBox.Show("No matched demo!", "RFID DEMO", MessageBoxButtons.OKCancel, MessageBoxIcon.None, MessageBoxDefaultButton.Button1);
            //            break;
            //    }
            //    if (form != null)
            //    {
            //        progressBarWait.Value = progressBarWait.Maximum;
            //        form.Load += new EventHandler(showform_Load);
            //        form.ShowDialog();
            //    }
            //    this.Close();
            //}
        }