private void saveTable(int index) { //try //{AppDomain.CurrentDomain.BaseDirectory Directory.SetCurrentDirectory(converter.GetPath()); //} //catch (DirectoryNotFoundException ex) //{ //} DialogResult d = MessageBox.Show("Укажите путь, по которому будут сохранены вычисления", "Подсказка", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); if (d == DialogResult.OK) { if (saveFileDialog.ShowDialog() == DialogResult.OK) { converter.setOutputPath(saveFileDialog.FileName); if (index == 0) { converter.convertAsync(); } else { converter.rectangleConvertAsync(); } } } }