private void сохранитьТаблицуToolStripMenuItem_Click(object sender, EventArgs e) { saveFileDialog1 = new SaveFileDialog(); saveFileDialog1.InitialDirectory = @"c:\MyFolder\Default\"; saveFileDialog1.Filter = "Text Files (*.txt)|*.txt|" + "Comma-Delimited Files (*.csv)|*.csv|All Files (*.*)|*.*"; DialogResult result = saveFileDialog1.ShowDialog(); if (result == DialogResult.OK) { portram.SaveTheFile(saveFileDialog1.FileName); } }