private static bool LoadDefaultSettings() { uint power = 0, linkProfile = 0; SingulationAlgorithm sing = SingulationAlgorithm.UNKNOWN; appSetting.SerialNum = SerialNumber; if (ReaderXP.GetPowerLevel(ref power) != Result.OK) { MessageBox.Show(String.Format("SetPowerLevel rc = {0}", ReaderXP.LastResultCode)); Application.Exit(); return(false); } appSetting.Power = power; if (ReaderXP.GetCurrentLinkProfile(ref linkProfile) != Result.OK) { MessageBox.Show(String.Format("SetCurrentLinkProfile rc = {0}", ReaderXP.LastResultCode)); Application.Exit(); return(false); } appSetting.Link_profile = linkProfile; if (appSetting.FixedChannel = ReaderXP.IsFixedChannel) { appSetting.Region = ReaderXP.SelectedRegionCode; appSetting.Channel_number = ReaderXP.SelectedChannel; appSetting.Lbt = ReaderXP.LBT_ON == LBT.ON; } else { appSetting.Region = ReaderXP.SelectedRegionCode; } if (ReaderXP.GetCurrentSingulationAlgorithm(ref sing) != Result.OK) { MessageBox.Show(String.Format("GetCurrentSingulationAlgorithm rc = {0}", ReaderXP.LastResultCode)); Application.Exit(); return(false); } appSetting.Singulation = sing; if (ReaderXP.GetSingulationAlgorithmParms(appSetting.Singulation, appSetting.SingulationAlg) != Result.OK) { MessageBox.Show(String.Format("GetCurrentSingulationAlgorithm rc = {0}", ReaderXP.LastResultCode)); Application.Exit(); return(false); } appSetting.AntennaList = AntennaList.DEFAULT_ANTENNA_LIST; return(true); }