Exemplo n.º 1
0
        public NamingHelper()
        {
            if (File.Exists(_filePath))
            {
                _codes = File.ReadAllLines(_filePath).Skip(1).Select(v => NamingData.FromCsv(v)).ToList();
            }

            if (_codes.Count > 0)
            {
                Level1.AddRange(_codes.Where(x => x.Level == 1).ToList());
                Level2.AddRange(_codes.Where(x => x.Level == 2).ToList());
                Level3.AddRange(_codes.Where(x => x.Level == 3).ToList());
                Level4.AddRange(_codes.Where(x => x.Level == 4).ToList());
                Level5.AddRange(_codes.Where(x => x.Level == 5).ToList());
            }
        }