public void cmdBrowse_Click(object sender, EventArgs e)
        {
            string[] lines = new string[700];
            int      i     = 0;

            ;

            string[] filePaths = Directory.GetFiles(txtPath.Text + @"\");

            var outPutFile = txtPath.Text + @"\outPut.csv";

            foreach (string file in filePaths)
            {
                lines[i]  = i + ",";
                lines[i] += ParseFile(file);
                i++;
            }

            File.WriteAllLines(outPutFile, lines);

            TransposeCSV csvTrans = new TransposeCSV();

            csvTrans.txtTransposeCSV.Text = outPutFile;
            csvTrans.button1_Click(null, null);
            this.Close();
        }
        public void cmdBrowse_Click(object sender, EventArgs e)
        {
            string[] lines = new string[700];
            int i = 0;

;

            string[] filePaths = Directory.GetFiles(txtPath.Text + @"\");

            var outPutFile = txtPath.Text + @"\outPut.csv";

            foreach (string file in filePaths)
            {
                lines[i] = i + ",";
                lines[i] += ParseFile(file);
                i++;
            }

            File.WriteAllLines(outPutFile, lines);

            TransposeCSV csvTrans = new TransposeCSV();
            csvTrans.txtTransposeCSV.Text = outPutFile;
            csvTrans.button1_Click(null,null);
            this.Close();
        }
 private void cmdTransposeCSV_Click(object sender, EventArgs e)
 {
     Form transposeCSV = new TransposeCSV();
     transposeCSV.Show();
 }
コード例 #4
0
        private void cmdTransposeCSV_Click(object sender, EventArgs e)
        {
            Form transposeCSV = new TransposeCSV();

            transposeCSV.Show();
        }