コード例 #1
0
 public void DownLoad(string fileName, Action <string, List <string[]> > callback)
 {
     if (callback != null)
     {
         callback(fileName, ReadCSVAssetMgr.ReadCSV(fileName));
     }
 }
コード例 #2
0
        private IEnumerator DownLoadData(CsvNameType filEChartsType)
        {
            isLoading = true;

            //下载ECharts.csv
            List <string[]> model = new List <string[]>();

            yield return(model = ReadCSVAssetMgr.ReadCSV(filEChartsType.ToString()));

            List <CSVAnalysis> listCsv = new List <CSVAnalysis>(model.Count);
            int tabelHead = 3;

            for (int i = tabelHead; i < model.Count; i++)
            {
                CSVAnalysis data = ReadCSVAssetMgr.GetXmlData(filEChartsType);
                data.AnalySis(model[i]);
                listCsv.Add(data);
            }
            dicCsvMode[filEChartsType] = listCsv;
            isLoading = false;
        }