//---------------------------------------------------------------------
 public static Ecoregions.IDataset LoadEcoregions()
 {
     Ecoregions.DatasetParser ecoregionsParser = new Ecoregions.DatasetParser();
     FileLineReader reader = OpenFile("Ecoregions.txt");
     try {
         return ecoregionsParser.Parse(reader);
     }
     finally {
         reader.Close();
     }
 }
		public void Init()
		{
			parser = new ParameterParser();

			Ecoregions.DatasetParser ecoregionsParser = new Ecoregions.DatasetParser();
			reader = OpenFile("Ecoregions.txt");
			try {
				ParameterParser.EcoregionsDataset = ecoregionsParser.Parse(reader);
			}
			finally {
				reader.Close();
			}
		}
        public void Init()
        {
            parser = new ParameterParser();

            Ecoregions.DatasetParser ecoregionsParser = new Ecoregions.DatasetParser();
            reader = OpenFile("Ecoregions.txt");
            try {
                ParameterParser.EcoregionsDataset = ecoregionsParser.Parse(reader);
            }
            finally {
                reader.Close();
            }
        }
示例#4
0
        public void Init()
        {
            Ecoregions.DatasetParser ecoregionsParser = new Ecoregions.DatasetParser();
            reader = OpenFile("Ecoregions.txt");
            try {
                ecoregionDataset = ecoregionsParser.Parse(reader);
            }
            finally {
                reader.Close();
            }

            Species.DatasetParser speciesParser = new Species.DatasetParser();
            reader = OpenFile("Species.txt");
            try {
                speciesDataset = speciesParser.Parse(reader);
            }
            finally {
                reader.Close();
            }

            parser = new ParametersParser(ecoregionDataset, speciesDataset);
        }