Ejemplo n.º 1
0
        private string GetDefaultInfoZone(IZone zone)
        {
            string name       = "Nombre: " + zone.GetName() + "\n";
            string category   = "Tipo: " + zone.GetCategory() + "\n";
            string territory  = "Territoria: " + zone.GetTerritory() + "\n";
            string resolution = zone.GetResolution() + "\n";
            string infoZone   = name + category + territory + resolution;

            return(infoZone);
        }
Ejemplo n.º 2
0
        public void ReadAreasFile(string path)
        {
            StreamReader reader = new StreamReader(path: path);

            reader.ReadLine();
            string line = null;

            while ((line = reader.ReadLine()) != null)
            {
                IZone zone = CreateZone(line);
                zones[zone.GetName()] = zone;
            }

            reader.Close();
        }