Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 public static WizardConfig[] getAvailibleWizardConfigs(List<WizardConfig> wizardDescriptor, UsingRegion usingRegion, FreqRange freqRange, int tolerance)
 {
     return getFilteredConfigurations(wizardDescriptor, usingRegion, freqRange, tolerance).ToArray();
 }
Ejemplo n.º 5
0
 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();
 }