Projekt

Obecné

Profil

Stáhnout (983 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
using Parser.OutputInfo;
2
using Parser.Parsers;
3
using System;
4
using System.Collections.Generic;
5
using System.Globalization;
6
using System.Threading;
7

    
8
namespace ServerApp
9
{
10
    class Program
11
    {
12
        static void Main(string[] args)
13
        {
14
            var cultureInfo = CultureInfo.GetCultureInfo("en-GB");
15
            Thread.CurrentThread.CurrentCulture = cultureInfo;
16
            Thread.CurrentThread.CurrentUICulture = cultureInfo;
17

    
18
            TagInfo.CreateDictionaries();
19

    
20
            string path = "data/weather/";
21
            
22
            WeatherParser parser = new WeatherParser();
23
            List<WeatherInfo> list = parser.ParseWeatherData(path);
24
            if (list == null)
25
                Console.WriteLine("Unsuccessful parsing");
26

    
27
            Console.WriteLine(list.Count);
28

    
29
            for (int i = 0; i < list.Count; i++)
30
            {
31
                Console.WriteLine(list[i].ToString());
32
            }
33

    
34
            Console.ReadLine();
35
        }
36
    }
37
}
(2-2/3)