Exemplo n.º 1
0
        private void save_file_Click(object sender, EventArgs e)
        {
            SaveFileDialog save = new SaveFileDialog();

            save.Filter = "Pliki tekstowe (*.txt)|*.txt";
            if (save.ShowDialog() == DialogResult.OK)
            {
                FilesMethods files = new FilesMethods(dataGridView);
                files.ExportDatatoTextFile(save.FileName);
            }
        }
Exemplo n.º 2
0
        private void read_file_Click(object sender, EventArgs e)
        {
            OpenFileDialog open = new OpenFileDialog();

            open.Filter = "Pliki tekstowe (*.txt)|*.txt";
            if (open.ShowDialog() == DialogResult.OK)
            {
                FilesMethods files = new FilesMethods(dataGridView);
                files.ImportTextFileToAplication(open.FileName);
            }
        }