private void AddNetwork(NetworkInfo network) { this.networks[network.OriginalNetworkId] = network; }
private void ParseNetwork(IList<string> fields) { if (fields.Count < 3) return; int start = ParseNumber(fields[1]); int end = ParseNumber(fields[2]); if (start == 0 || end == 0 || start > end) return; for (int onid = start; onid <= end; onid++) { var network = new NetworkInfo(); network.OriginalNetworkId = onid; if (fields.Count >= 4) network.Name = fields[3]; if (fields.Count >= 5) network.Operator = fields[4]; this.AddNetwork(network); } }