public void loadSkipRadios(string file) { Console.WriteLine("Cargando radios conocidos..."); List <Feature> features = FileReaders.ReadDbasefile(file); foreach (var f in features) { RadioInfo ri = RadioInfo.FromFeature(f); if (ri.Radio != "" && ri.Fraccion != "" && ri.Radio != "00" && ri.Fraccion != "00") { skipRadios[ri.makeKey()] = true; } } Console.WriteLine(features.Count + " radios agregados."); }
private List <Feature> PrepareLists(string file, out List <string> noCovered, bool hiRes = false) { List <Feature> allFeatures = new List <Feature>(); allFeatures = FileReaders.ReadDbasefile(file); var features = FilterFeatures(allFeatures); Console.WriteLine(""); Console.WriteLine("Calculando radios pendientes..."); int total = 0; int pendientes = 0; noCovered = new List <string>(); string nocoveredFile = Context.ResolveFilename("no_covered.txt"); if (File.Exists(nocoveredFile)) { noCovered.AddRange(File.ReadAllLines(nocoveredFile)); } foreach (var f in features) { string redcode = f.Attributes["REDCODE"] as string; RadioInfo r = RadioInfo.ParseRedcode(redcode); if (skipRadios.ContainsKey(r.makeKey()) == false) { total++; string name = r.makeName(); if (!r.isDone(hiRes) && !r.isNotRequired(hiRes) && noCovered.Contains(r.makeKey()) == false) { pendientes++; } } } Console.WriteLine("Pendientes: " + pendientes + "."); Console.WriteLine("Descubiertos sin cobertura: " + noCovered.Count + "."); Console.WriteLine("Total: " + total + "."); return(features); }