Example #1
0
 public string GetDelimiter(OptionsNames optionsNames)
 {
     if (optionsNames == OptionsNames.DepotopUk)
     {
         return(",");
     }
     return(";");
 }
Example #2
0
        public string GetOptionsNames(OptionsNames optionsNames)
        {
            if (!m_CsvFile.Initialized)
            {
                return("");
            }

            return(m_CsvFile[0][(int)optionsNames]);
        }
Example #3
0
        public Dictionary <string, string> GetOptionsData(OptionsNames optionsNames)
        {
            if (!m_CsvFile.Initialized)
            {
                return(new Dictionary <string, string>());
            }

            Dictionary <string, string> data = new Dictionary <string, string>();

            foreach (KeyValuePair <int, List <string> > kvp in m_CsvFile.Data)
            {
                if (kvp.Key == 0)
                {
                    continue;
                }

                data.Add(kvp.Value[(int)OptionsNames.Input], kvp.Value[(int)optionsNames]);
            }

            return(data);
        }
Example #4
0
        public List <string> GetOptionsValues(OptionsNames optionsNames)
        {
            if (!m_CsvFile.Initialized)
            {
                return(new List <string>());
            }

            int           index = (int)optionsNames;
            List <string> opt   = new List <string>();

            foreach (KeyValuePair <int, List <string> > kvp in m_CsvFile.Data)
            {
                if (kvp.Key == 0)
                {
                    continue;
                }

                opt.Add(kvp.Value[index]);
            }

            return(opt);
        }