private void btnConvertToCsv_Click(object sender, EventArgs e) { if (openFileDialog.ShowDialog() == DialogResult.OK) { try { FileFormats.ConvertFileToCsv(openFileDialog.FileName, Path.ChangeExtension(openFileDialog.FileName, "csv")); ScadaUiUtils.ShowInfo("Conversion completed successfully."); } catch (Exception ex) { ScadaUiUtils.ShowError(ex.Message); } } }