private void сортироватьToolStripMenuItem_Click(object sender, EventArgs e) { dataSorted = new DataSorted(data); OpenFileDialog openFileDialog2 = new OpenFileDialog(); if (openFileDialog2.ShowDialog() == DialogResult.OK) { dataSorted.SaveSortedData(openFileDialog1.FileName); } }
private void BTSortAndSave_Click(object sender, EventArgs e) { dataSorted = new DataSorted(data); OpenFileDialog openFileDialog2 = new OpenFileDialog(); if (openFileDialog2.ShowDialog() == DialogResult.OK) { dataSorted.SaveSortedData(openFileDialog2.FileName); } }