コード例 #1
0
        private void exportButton_Click(object sender, EventArgs e)
        {
            SaveFileDialog fd = new SaveFileDialog();

            fd.Filter   = "CSV File|*.csv";
            fd.FileName = Path.GetFileNameWithoutExtension(project.file);
            DialogResult r = fd.ShowDialog();

            if (r == DialogResult.OK)
            {
                CSVExporter ex = new CSVExporter(project);
                ex.Export(fd.FileName);
                MessageBox.Show("CSV file written!\n\nField delimiter: \";\"\nText delimiter: None", "Done", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
コード例 #2
0
 private void exportButton_Click(object sender, EventArgs e)
 {
     SaveFileDialog fd = new SaveFileDialog();
     fd.Filter = "CSV File|*.csv";
     fd.FileName = Path.GetFileNameWithoutExtension(project.file);
     DialogResult r = fd.ShowDialog();
     if (r == DialogResult.OK)
     {
         CSVExporter ex = new CSVExporter(project);
         ex.Export(fd.FileName);
         MessageBox.Show("CSV file written!\n\nField delimiter: \";\"\nText delimiter: None", "Done", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }