Пример #1
0
        public TangraCsvExport(string fileName)
        {
            if (File.Exists(fileName))
            {
                string[] lines = File.ReadAllLines(fileName);

                if (lines.Length > 1)
                {
                    Headers = lines[0].Split(DELIMITERS);

                    for (int i = 0; i < lines.Length; i++)
                    {
                        var entry = new TangraExportEntry(lines[i].Split(DELIMITERS));
                        if (entry.IsValid)
                            Entries.Add(entry);
                    }
                }
            }
        }
Пример #2
0
        public TangraCsvExport(string fileName)
        {
            if (File.Exists(fileName))
            {
                string[] lines = File.ReadAllLines(fileName);

                if (lines.Length > 1)
                {
                    Headers = lines[0].Split(DELIMITERS);

                    for (int i = 0; i < lines.Length; i++)
                    {
                        var entry = new TangraExportEntry(lines[i].Split(DELIMITERS));
                        if (entry.IsValid)
                        {
                            Entries.Add(entry);
                        }
                    }
                }
            }
        }