Ejemplo n.º 1
0
        private void OnOpenCsvFileClick(object sender, EventArgs e)
        {
            if (openCSVFile.ShowDialog() == DialogResult.OK)
            {
                string[] FileNames = openCSVFile.FileNames;
                textCVSFileTxt.Text = "";
                for (int i = 0; i < FileNames.Length; i++)
                {
                    textCVSFileTxt.Text += FileNames[i] + ";";
                }

                for (int i = 0; i < FileNames.Length; i++)
                {
                    DataTable dt = new DataTable();
                    CSVFileHelper.ReadCSV(FileNames[i], 0, dt);
                    PointPairList displayList = PaneFill(dt);
                    PaneDisplay(displayList, Color.Red);
                }
            }
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var a = CSVFileHelper.ReadCSV(@"D:\Data.csv");

            foreach (var i in a)
            {
                foreach (var j in i)
                {
                    Console.Write(j);
                    Console.Write("|");
                }
                Console.WriteLine("\r\n");
            }


            var list = new List <int>(new Dictionary <int, string>().Keys);

            for (var i = list.Count - 1; i >= 0; i--)
            {
                Console.WriteLine(list[i] + list[list[i]]);
            }

            Console.ReadKey(true);
        }