private static string GetCuttedName(string name, EnableInteger nameLen) { if (nameLen.Enabled) { name = Geo.Utils.StringUtil.SubString(name, 0, nameLen.Value); } return(name); }
/// <summary> /// 构造函数 /// </summary> public ObsFileConvertOption() { this.ObsCodes = new List <string>() { "P1" }; this.TimePeriod = new TimePeriod(Time.MinValue, Time.MaxValue); this.IsEnableInterval = false; this.IsEnableMinObsCodeAppearRatio = false; this.MinObsCodeAppearRatio = 0.5; this.Version = 3.02; this.Interval = 30; this.SatelliteTypes = new List <SatelliteType>() { SatelliteType.G }; ObsTypes = new List <ObsTypes>() { Gnsser.ObsTypes.C, Gnsser.ObsTypes.P, Gnsser.ObsTypes.L }; NotVacantCodeList = new List <string>() { "L1", "L2" }; this.EnabledSection = new EnableFloat(24 * 60, false); this.OnlyCodes = new List <string>() { "L1", "L2", "C1", "P1", "P2" }; SatsToBeRemoved = new List <SatelliteNumber>(); this.MinEpochCount = 10; this.IsEnableMinEpochCount = false; this.MaxBreakCount = 3; this.SatCutOffAngle = new EnableFloat(10, false); IsEnableRinexVertion = false; StrOfFrequenceNumToBeRemoved = "5,6,7,8"; IndicatedEphemeris = new EnableString(); RinexNameType = RinexNameType.保持不变; SiteNameLength = new EnableInteger(8); IsUpperFileName = true; IsUpperSiteName = true; }
/// <summary> /// 设置值 /// </summary> /// <param name="enabledVal"></param> public void SetEnabledValue(EnableInteger enabledVal) { this.numericUpDown1.Value = enabledVal.Value; this.checkBox_enabled.Checked = enabledVal.Enabled; }