public void addConfiguration(string[] configurationFields, int configurationNumber) { FreqRange item = new FreqRange(); if (item.initFreqRange(configurationFields[0])) { foreach (FreqRange range2 in this._feqRangeList) { if ((range2.LowEnd == item.LowEnd) && (range2.HighEnd == item.HighEnd)) { range2.addConfiguration(configurationFields, configurationNumber); return; } } item.addConfiguration(configurationFields, configurationNumber); this._feqRangeList.Add(item); } }
private static List<WizardConfig> getFilteredConfigurations(List<WizardConfig> wizardDescriptor, UsingRegion selectedRegion, FreqRange freqRange, int tolerance) { List<WizardConfig> list = new List<WizardConfig>(); foreach (WizardConfig config in getFilteredConfigurations(wizardDescriptor, selectedRegion, freqRange)) { if (tolerance == config.CrystalTolerance) { list.Add(config); } } return list; }
private static List<WizardConfig> getFilteredConfigurations(List<WizardConfig> wizardDescriptor, UsingRegion selectedRegion, FreqRange freqRange) { List<WizardConfig> list = new List<WizardConfig>(); foreach (WizardConfig config in getFilteredConfigurations(wizardDescriptor, selectedRegion)) { if ((freqRange.LowEnd == config.FrequencyBand.LowEnd) && (freqRange.HighEnd == config.FrequencyBand.HighEnd)) { list.Add(config); } } return list; }
public static WizardConfig[] getAvailibleWizardConfigs(List<WizardConfig> wizardDescriptor, UsingRegion usingRegion, FreqRange freqRange, int tolerance) { return getFilteredConfigurations(wizardDescriptor, usingRegion, freqRange, tolerance).ToArray(); }
public static int[] getAvailibleTolerances(List<WizardConfig> wizardDescriptor, UsingRegion usingRegion, FreqRange freqRange) { List<int> list = new List<int>(); foreach (WizardConfig config in getFilteredConfigurations(wizardDescriptor, usingRegion, freqRange)) { if (!list.Contains(config.CrystalTolerance)) { list.Add(config.CrystalTolerance); } } return list.ToArray(); }