Beispiel #1
0
        private void LoadDetailFile()
        {
            var provider = new CsvProvider();
            var schools  = provider.Read(this.shellViewModel.DetailFilePath);

            //var distinct = (from s in schools
            //                select s).DistinctBy(s => s.SchoolFullName);

            //this.shellViewModel.Schools.Clear();

            //foreach (var school in distinct)
            //{
            //    this.shellViewModel.Schools.Add(new SchoolViewModel(school));
            //}
        }
Beispiel #2
0
        private static void Main(string[] args)
        {
            var e = new ExcelProvider();

            e.Read(OdsFile, "KiTa");

            var data = File.ReadAllBytes(CsvFile);


            var lines = File.ReadAllLines(CsvFile);

            using (var reader = new StreamReader(CsvFile, true))
            {
                reader.Read();
                Console.WriteLine(reader.CurrentEncoding);
            }



            var c = new CsvProvider();

            c.Read(CsvFile);
        }