public string GetDelimiter(OptionsNames optionsNames) { if (optionsNames == OptionsNames.DepotopUk) { return(","); } return(";"); }
public string GetOptionsNames(OptionsNames optionsNames) { if (!m_CsvFile.Initialized) { return(""); } return(m_CsvFile[0][(int)optionsNames]); }
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); }
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); }