Exemplo n.º 1
0
        public static List <Aula> Get_Aulas()
        {
            var aulas = new List <Aula>();

            using (_fileManager)
            {
                _fileManager.OpenFile(_dirAulas, false, false);
                while (_fileManager.Readable)
                {
                    var datos = _fileManager.ReadLine().Split(',');
                    aulas.Add(new Aula(datos[0],
                                       Convert.ToInt32(datos[1])));
                }
            }
            return(aulas);
        }
Exemplo n.º 2
0
        public int Start(byte[,] pokemon, string path, int row, int column)
        {
            File_Manager fm = new File_Manager();

            byte[] inputFile;
            int    found = 0;

            inputFile = fm.OpenFile(path);
            found     = SearchPokemon(pokemon, inputFile, row, column);

            return(found);
        }